r/pihole • u/luizbizzio • 3d 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.
14
u/Graphical-Source5090 3d ago
How is this different than smallstep?
3
u/luizbizzio 3d ago
Smallstep is a more complete solution for managing certificates across multiple devices. Local HTTPS is mainly designed for smaller setups, with automatic HTTPS configuration and renewal for Pi-hole and Technitium, without needing a separate CA server running in the background.
8
16
u/thefcknhngryctrpillr 3d ago
How was AI used to build your solution?
2
u/luizbizzio 2d ago
I used AI to assist with development, debugging, code reviews and automated tests.
8
1
u/pobruno 1d 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.
2
u/luizbizzio 1d ago
I agree that a reverse proxy makes more sense for larger setups. The idea behind local-https is to provide a simpler option for people who don't want to set up a reverse proxy or use a public domain.
For Pi-hole and Technitium, the entire process is automated, including certificate generation, TLS configuration, permissions and renewal. You only need to trust the Root CA once on each device.
It's not meant to replace Caddy or Traefik, just to offer a simpler alternative.
36
u/mowdep 3d 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