Expected Behaviour:
I'm running my Pi-hole (Pi-hole v5.17.2, FTL v5.23 and Web Interface v5.20.2) in Ubuntu Server 22.04, this server is a Proxmox VM. I want to enable HTTPS access to the Pi-hole Admin-Web-Interface via a self-signed SSL certificate.
Actual Behaviour:
That's what I've done:
-
Installed the lighttpd-mod-openssl package.
-
I ensured the lighttpd user www-data can read the required certificates:
sudo chown www-data -R /etc/lighttpd/ssl
-
I created the certificates with two ways:
Option 1, run the command:
openssl req -x509 -nodes -days 730 -newkey rsa:2048 -keyout /etc/lighttpd/ssl/pihole-selfsigned.key -out /etc/lighttpd/ssl/pihole-selfsigned.crt
I combined the files to obtain a pem file:
cat pihole-selfsigned.key > piholecert.pem cat pihole-selfsigned.crt >> piholecert.pem
Option 2, I ran a script to obtain the needed pem files, this script is published on the lunarwatcher post. -
I configured the external.conf file following these tutorials, with different combinations:
Enabling HTTPS for your Pi-hole Web Interface (I also read all the entire thread).
Configure Pi-hole SSL using a self-signed certificate - Virtualization Howto
HTTPS enabled on Pi-hole web interface • Michaël Rigart
Setting up SSL with pihole, without a FQDN | Olivia's blog -
I restarted lighttpd server.
After trying a lot of things, it has been impossible to enable https for my Pi-hole.
Debug Token:
https://tricorder.pi-hole.net/glAQFC8n/
Thank you very much and best regards!!