r/technitium • • 8d ago

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

64 Upvotes

21 comments sorted by

4

u/Senior-Afternoon6708 8d 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?

4

u/luizbizzio 8d 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/No-Bat2404 8d ago

I use wildcard cert for local domain l.example.com (use split horizon for correct resolution for external and local access) using nginx proxy manager and shared the cert to techtinium using volume.

1

u/SmallDodgyCamel 8d 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 8d ago

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

1

u/peterbata 8d 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

2

u/luizbizzio 8d 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.

1

u/peterbata 8d ago

Good morning and thank you for your response. It appears that if I access my TS server via https://hostname:53443 then confirm it's security exception i can connect securely. Using my TS server's Tailscale IP works fine as well. Is this the expected behavior.

[Install]

- Version: 1.1.2

- Installed: yes

- Marker: /var/lib/local-https/installed

- Command: /usr/local/sbin/local-https

[Host]

- Hostname: xxx

- IPs: 17x.4x.2x.1xx 1xx.7x.1xx.20 2xx.:d035:8:25ff:0:2167:df35:423e fd7a:115c:a1e0::d13a:920b

[State]

- State file: present (/var/lib/local-https/state.env)

- Installed at: 2026-11-27T01:23:11+00:00

- Last run at: 2026-11-27T03:06:49+00:00

- Domain: mydomain.com

- Applied targets: technitium

- Auto renew method: none

- Cert renewed last run: 0

- Server enddate (UTC): 2027-01-06T01:22:05Z

2

u/Apachez 8d 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.

2

u/SebastianFerrone 8d 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 8d 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 8d 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/2life_gamer 8d 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 8d 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/Dreamshadow1977 6d ago

Hope this helps me. I'm using technicium and traefik with a personally purchased domain, but I can't seem to get https working. I don't have a tunnel to the internet aside from my personal vpn to validate a wildcard.

1

u/luizbizzio 5d ago

Did it work for you?

1

u/Dreamshadow1977 5d ago

I haven't tested it yet. Hopefully by the weekend.

1

u/3ofUsDeez 8d ago

Thanks for your work .. markingbto check out later 😎

1

u/Personal_Gain9688 8d ago edited 8d ago

solid work, thank you

also fan of the joint-venture and incorporated services.

1

u/wolfannoy 8d ago

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

1

u/Meowwwzilla 8d ago

👏🏼👑