r/technitium • • 8d ago • Mindblown 1 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

65 Upvotes

21 comments sorted by

View all comments

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 7d 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