SSL Cert

NO luck here on Pi-Hole 6.0 final.

Debug simply shows:

/var/log/pihole/webserver.log:

[2025-02-18 14:28:32.959 EST 1700] Error initializing SSL context

I even tried using a ecdsa cert.

As in:

sudo certbot certonly --manual -d pihole.domain.com --agree-tos --preferred-challenges dns-01 --key-type ecdsa

Cert is created just fine but pi-hole is refusing to accept it.

Edit: Got it working. It was because the cat command didn't work when copying over the private key. Was getting the error of -bash: /etc/pihole/server.pem: Permission denied

These 2 commands worked for me on Ubuntu 24.04:

sudo cp /etc/letsencrypt/live/pihole.domain.com/fullchain.pem /etc/pihole/server.pem

sudo cat /etc/letsencrypt/live/pihole.domain.com/privkey.pem | sudo tee -a /etc/pihole/server.pem