I recently started using Webmin/Virtualmin and everything is working perfectly except for the SSL certificate for Webmin itself.
I have searched online and in the forum and found no solutions to my problem. I’m trying to use Let’s Encrypt for Webmin and I have setup a virtual server for the same hostname as Webmin. Let’s Encrypt does it’s job and the certificate is copied over to /etc/webmin. If I check under ‘Current Certificate’ in Webmin configuration it says that it is using the Let’s Encrypt certificate and the hostname is correct. However when I browse to Webmin it’s still using a self-signed wildcard certificate.
If I try to save the SSL settings it says:
Failed to save SSL options : The SSL private key file /etc/webmin/xxxxxxxx.key does not exist or does not contain a PEM format key
I checked the path it’s referring to and the key, cert and chain files are there. I checked the permissions for them and they are set to 0600 and the owner is root/root.
I have restarted Webmin and rebooted the server.
Does anyone have any suggestions on fixing this problem?
EDIT: I uploaded a new certificate and it saved correctly and it’s showing up under ‘Current certificate’ but when browsing to Webmin still using the self-signed certificate. I still can’t change anything under ‘SSL Settings’. It says the same thing as above:
Failed to save SSL options : The SSL private key file /etc/webmin/xxxxxxxx.key does not exist or does not contain a PEM format key