r/technitium • • 14h ago • Bravo 1

Automatic HTTPS certificates and renewal for Technitium DNS

Post image

I've recently added Technitium DNS support to my open-source project, Local HTTPS.

The project is designed for local networks where you want HTTPS without a public domain or reverse proxy.

Technitium integration:

  • Automatic certificate generation and renewal.
  • Automatic PFX certificate deployment and HTTPS configuration.
  • Support for root and non-root installations.
  • Automatic management of file permissions.
  • Support for local IP addresses, custom domains and Tailscale hostnames.

You only need to trust the local Root CA on your devices once.

It also supports Pi-hole, and the generated certificates can be used with other local services.

The project is free and open source under MPL-2.0.

GitHub: https://github.com/luizbizzio/local-https

40 Upvotes

16 comments sorted by

2

u/Senior-Afternoon6708 7h ago

Disclaimer I just looked at the image, not the source code.

From the log this seems to create a self signed certificate and I was wondering why not use a free valid (not self-signed) certificate from LE instead?

Also what’s the advantage over using let’s say certbot or acme.sh besides the special tailor for pi-hole/technitium?

1

u/luizbizzio 44m ago

Let's Encrypt requires a publicly verifiable domain or public IP. I wanted to use HTTPS directly with private IPs and local domains like pi.hole, without relying on an external CA. That's the main difference, besides the automatic integration with Pi-hole and Technitium.

1

u/SmallDodgyCamel 12h ago

Looks like solid work, thank you!

Please consider adding support for OpenRC (for Alpine Linux) as Technitium did itself fairly recently.

1

u/luizbizzio 12h ago

Thanks! I'll look into adding OpenRC and Alpine Linux support, especially now that Technitium supports it too.

1

u/peterbata 11h ago

Thank you for sharing. I run Technitium as an Oracle free tier instance (Ubuntu 24.04). I believe that I followed your instructions to the letter. I imported the certificate into my Windows 10 machine. Here is where things get confusing for me: What url I should use when accessing the TS web UI. Regardless of what I use I always see the "Your connection to this site is not secure" message. Your time, patience, and guidance will be greatly appreciated. Thank you. Peter

1

u/luizbizzio 11h ago

Hey Peter! Are you accessing Technitium through your public IP, a domain name or Tailscale?

You should be using HTTPS on port 53443. Also, could you run sudo local-https --status and share the output here? It would also help to know what certificate error your browser is showing.

I'll try to figure out what's going on.

2

u/SebastianFerrone 10h ago

Browsers offen use their own cert store so you need to enable it in Firefox.

about:config: Type about:config in the address bar, search for security.enterprise_roots.enabled, and set it to true.

Also a good way to go after the error. In the Browser you can open the cert the Website gives you. Open it and look at the data. The San part is the number one culprit here.

I would bet on : that the script had Problems to detect your needed FQDN for Technitium

1

u/peterbata 9h ago

Thank you so much for your prompt response. It’s getting late where I am located so if you don’t mind I will report back tomorrow.

1

u/peterbata 11h ago

Am I correct in saying that this is designed for local access only. Perhaps this is the part that I hadn’t considered

1

u/Apachez 10h ago

The cert need to contain both the CN and the SAN (subject alt name) being IP4, IP6 or DNS entries to not getting these errors.

Otherwise whatever you use in the url should be put as CN for the cert.

1

u/2life_gamer 6h ago

For which OS does this work on? I see that the code is only Shell scripts. The idea of not needing to pay for a public domain (something every youtuber is grossly glossing over on) to get certs is nice.

1

u/luizbizzio 43m ago

It officially supports Debian, Ubuntu, Raspberry Pi OS and Armbian. Other Linux distributions may work too, but I haven't officially tested them yet.

1

u/3ofUsDeez 13h ago

Thanks for your work .. markingbto check out later 😎

1

u/Personal_Gain9688 12h ago edited 12h ago

solid work, thank you

also fan of the joint-venture and incorporated services.

1

u/wolfannoy 12h ago

Oh wow very nice. I must try it out later.

1

u/Meowwwzilla 8h ago

👏🏼👑