[SOLVED] cwpsrv: [emerg] SL_CTX_use_PrivateKey_file(“/etc/pki/tls/privat

[SOLVED] cwpsrv: [emerg] SL_CTX_use_PrivateKey_file(“/etc/pki/tls/privat

After installing a new certificate with certbot I couldnt login to CWP anymore. When I tried to restart it i got this error

Starting cwpsrv: cwpsrv: [emerg] SL_CTX_use_PrivateKey_file("/etc/pki/tls/private/hostname.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

I solved it logging in by ssh as root and then using this command :

/usr/local/cwpsrv/htdocs/resources/scripts/generate_hostname_ssl

Leave a Reply

Your email address will not be published. Required fields are marked *