Accessing web interface via IP not working

Expected Behaviour:

I would expect to access the web interface via the IP address corresponding to the pi-hole (192.168.2.200) using 'https://192.168.2.200/admin/login'.

Actual Behaviour:

I am not able to access the web interface via the IP address corresponding to the pi-hole (192.168.2.200) using 'https://192.168.2.200/admin/login'.

Debug Token:

https://tricorder.pi-hole.net/4YAPb4Bo

The web server is not starting due to a certificate error:

[2025-05-01 18:54:01.533 CEST 562] Initializing HTTP server on ports "80o,443os,[::]:80o,[::]:443os"
[2025-05-01 18:54:01.569 CEST 562] Error initializing SSL context

And:

2025-05-01 18:54:01.533 CEST [562M] INFO: FTL is running as user pihole (UID 999)
2025-05-01 18:54:01.547 CEST [562M] INFO: Reading certificate from /etc/pihole/tls.pem ...
2025-05-01 18:54:01.547 CEST [562M] INFO: No key found
2025-05-01 18:54:01.548 CEST [562M] ERROR: Cannot parse certificate: Error code -8576
2025-05-01 18:54:01.548 CEST [562M] WARNING: SSL/TLS certificate /etc/pihole/tls.pem does not match domain pi.hole!
2025-05-01 18:54:01.567 CEST [562M] INFO: Using SSL/TLS certificate file /etc/pihole/tls.pem
2025-05-01 18:54:01.570 CEST [562M] ERROR: Start of webserver failed!. Web interface will not be available!
2025-05-01 18:54:01.570 CEST [562M] ERROR:        Error: Error initializing SSL context (error code 3.0)

It looks like your current certificate is invalid (issued for a different domain), expired or broken.

You can let Pi-hole automatically create a new certificate by removing the old certificate and restarting pihole-FTL, using these commands:

sudo rm /etc/pihole/tls*
sudo service pihole-FTL restart

Thank you for your help @rdwebdesign! This solved my problem.

The problem occurred after a new / clean install and set-up of an existing pi-hole configuration so it makes sense the certificate had to be renewed.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.