r/raspberry_pi • u/Foxythefox2017 • 1d ago
Show-and-Tell Automatic HTTPS for local services running on a Raspberry Pi
My friend has been working on Local HTTPS, a project I originally created to manage HTTPS certificates for the services running on my Raspberry Pi.
The idea is to automate the whole process without needing a public domain or reverse proxy.
Features:
- Automatic certificate generation and renewal.
- Automatic HTTPS configuration for Pi-hole and Technitium DNS.
- Support for local IP addresses, custom domains and Tailscale hostnames.
- PEM and PFX certificates for other services like Grafana and Nginx.
- Automatic management of certificate permissions.
- Installation with a single command.
You only need to trust the local Root CA on your devices once.
It officially supports Raspberry Pi OS, Debian, Ubuntu and Armbian.
The project is completely free and open source under MPL-2.0.
10
Upvotes
2
u/shravanrevanna 1d ago
private CA means installing the root on every device, and Android apps ignore user-added CAs since 7. plus a stolen Pi key can sign certs for any domain.
1
u/NL_Gray-Fox 1d ago
In my 30+ years of work experience, I've only ever encountered PFX files in Windows environments. In Linux/Unix environments, we use PKCS#7, PKCS#8, PKCS#10 and PKCS#12 (or .p7, .p8, .p10 and .p12 respectively).
And yes, PFX and P12 are essentially the same format (PKCS#12). It's just that PFX is more commonly encountered in Windows environments, while P12 is the extension I'm more accustomed to seeing in Linux/Unix environments.
That being said, why use self-signed certificates when ACME exists?
With Let's Encrypt and other ACME-compatible Certificate Authorities, obtaining and renewing trusted certificates can be fully automated and is essentially free.
Unless you have a specific reason to use a private PKI or operate in an isolated environment, I don't really see the advantage of self-signed certificates for publicly accessible services.
1
u/PirateCaptainMoody 22h ago
Has your friend ever heard of
step-ca? Because that's whatstep-cadoes, and does really well 😅