Expected Behaviour:
Pi-hole v6 uses my supplied self-signed certificate in the provided path
Actual Behaviour:
Web UI server does not start, logs say “ Error initializing SSL context”
Debug Token:
https://tricorder.pi-hole.net/9F3a7xPg/
I have installed the v6 beta in order to set up TLS on my server.
I have a custom solution that signs and renews certificates for my local domains, so I have created a new certificate for Pihole, and directed it to its path using configuration in /etc/pihole/pihole.toml
Problem is, once I do that, the server won’t start…
FTL logs say:
2024-10-25 15:43:24.977 IDT [1323M] INFO: Created SSL/TLS certificate for pi.hole at /home/aransh/Downloads/certificates/domains/pi.hole/server.pem
2024-10-25 15:43:24.977 IDT [1323M] ERROR: Webserver SSL/TLS certificate /home/aransh/Downloads/certificates/domains/pi.hole/server.pem not found or not readable!
2024-10-25 15:43:24.977 IDT [1323M] ERROR: Start of webserver failed!. Web interface will not be available!
2024-10-25 15:43:24.977 IDT [1323M] ERROR: Error: Error initializing SSL context (error code 3.0)
2024-10-25 15:43:24.977 IDT [1323M] ERROR: Hint: Check the webserver log at /var/log/pihole/webserver.log
2024-10-25 15:43:24.978 IDT [1323M] INFO: Blocking status is enabled
2024-10-25 15:43:25.196 IDT [1323/T36348] INFO: Compiled 7 allow and 0 deny regex for 39 clients in 109.5 msec
2024-10-25 15:43:29.112 IDT [1323/T36347] INFO: Received 8/8 valid NTP replies from pool.ntp.org
2024-10-25 15:43:29.112 IDT [1323/T36347] INFO: Time offset: 8.499026e-01 ms (excluded 0 outliers)
2024-10-25 15:43:29.112 IDT [1323/T36347] INFO: Round-trip delay: 3.206372e+00 ms (excluded 0 outliers)
2024-10-25 15:43:30.000 IDT [1323/T36458] INFO: NTP server listening on 0.0.0.0:123 (IPv4)
2024-10-25 15:43:30.000 IDT [1323/T36459] INFO: NTP server listening on :::123 (IPv6)
web server logs say:
[2024-10-25 15:43:24.971 IDT 1323] Initializing HTTP server on port 80,[::]:80,443s,[::]:443s
[2024-10-25 15:43:24.977 IDT 1323] Error initializing SSL context
I tried comparing to the file in "/etc/pihole/tls.pem",
and permissions are all the same, owner/group is same
Only difference I found was that the certificate generated by Pihole has an encrypted private key, but the configuration file only mentions private key and certificate are required in the pem, so I’m lost to what’s missing here…