r/pihole • u/luizbizzio • 2d ago
Automatic HTTPS certificates and renewal for Pi-hole without a public domain
I've been working on Local HTTPS, previously known as Pi-hole HTTPS.
I originally built it to simplify HTTPS certificate management on my Pi-hole installation without needing a public domain or reverse proxy.
What it does:
- Generates a local Root CA and HTTPS certificates.
- Automatically configures HTTPS in Pi-hole.
- Supports Pi-hole 6 (FTL) and older versions (Lighttpd).
- Automatically renews and deploys certificates.
- Supports local IP addresses, custom domains and Tailscale hostnames.
You only need to trust the Root CA on your devices once.
The project has recently expanded to support Technitium DNS, and the generated certificates can also be used with other local services, such as Grafana and Nginx.
It supports Debian, Ubuntu, Raspberry Pi OS and Armbian.
It's completely free and open source under MPL-2.0.
31
u/mowdep 1d ago
Or you can ask for a wildcart cert and publish only local domain in you pihole. That you never leak your sub domains and you have a trusted LE cert
14
u/Graphical-Source5090 2d ago
How is this different than smallstep?
15
u/thefcknhngryctrpillr 2d ago
How was AI used to build your solution?
1
u/pobruno 16h ago
Neat project if you just want something quick for a single box, though it kinda feels like tackling TLS at the wrong layer
Baking cert generation and renewals straight into individual apps via shell scripts creates extra moving parts and hassle. Having to manually push and trust a self-signed Root CA on every phone and laptop is a pain, plus if that CA key ever gets compromised on the host, all your devices are exposed
Usually in a homelab, it's way cleaner to handle SSL at the edge with a reverse proxy like Caddy or Traefik using a DNS challenge, or just put everything behind Tailscale or WireGuard. That way your internal apps stay on plain HTTP, you don't mess with client cert stores, and it scales easily once you start spinning up more services.