Control Web Panel

WebPanel => SSL => Topic started by: NukeSter on October 18, 2017, 08:35:12 PM

Title: Please help cwp wont start with SSL error
Post by: NukeSter on October 18, 2017, 08:35:12 PM
Quote
[root@srv1 ~]# service cwpsrv start
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)
                                                           [FAILED]
I get this error and cwp wont start.


Please help.
Title: Re: Please help cwp wont start with SSL error
Post by: 24x7servermanagement on October 19, 2017, 06:11:59 AM
Generate the new SSL certificate for hostname using this command.

sh generate_hostname_ssl
Title: Re: Please help cwp wont start with SSL error
Post by: xjlin0 on January 07, 2018, 05:18:17 PM
Generate the new SSL certificate for hostname using this command.

sh generate_hostname_ssl

Thanks I run the command.  Even it complains failed to create symbolic link, the CWP panel site is back after restart cwpserv, and the original installed site for end_users are running fine with their https/SSL

Quote
$ sudo service cwpsrv start
Redirecting to /bin/systemctl start cwpsrv.service
Title: Re: Please help cwp wont start with SSL error
Post by: xjlin0 on January 09, 2018, 02:53:25 PM
Taking it back ..... the regeneration of new SSL certificate now makes the site SSL (generated by AutoSSL) invalid.

How can I resolve it? thanks for the suggestion.

mydomain.org  => main SSL  (invalid)
other.mydomain.org (subdomain from alias)  ==> another SSL (still good)