Author Topic: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal  (Read 8072 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« on: February 24, 2020, 10:43:27 AM »
Hello, I have a problem with SSL renewal.
The problem appeared few days ago.

I have few domans hosted on webpanel, but when I try to renew SSL for any domain, the certificate is created for first domain on the list and I get SSL_ERROR_BAD_CERT_DOMAIN error.

Any ideas what could be the cause?  Please help, thank you.

Offline
*
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #1 on: February 24, 2020, 11:07:23 AM »
I see that configuration file for domain in /usr/local/apache/conf.d/vhosts disappeared after SSL cert generation...

Offline
****
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #2 on: February 24, 2020, 02:24:03 PM »
rebuild the config files.  It's a weird bug that doesn't always happen, but does on occasion.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #3 on: February 24, 2020, 02:32:52 PM »
Thanks for the response, are you sure that rebuilding vhosts won't break all server configuration? Did you have similar issue?

Offline
****
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #4 on: February 24, 2020, 02:37:33 PM »
Unless your modified a vhost, nothing should break. You can rebuild JUST that one domains vhosts as well.

CWP  -> Webserver Settings -> Webservers Domain Config
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #5 on: February 24, 2020, 02:56:38 PM »
I've rebuilt just one configuration for this particular domain only, but the problem with missing vhosts config after SSL certificate generation still persists.

Offline
****
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #6 on: February 24, 2020, 03:14:43 PM »
I would try rebuilding all vhosts then.  That seems very odd.  Could be possible that the certificate renewal failed.  check /var/log/cwp/cwp_sslmod.log for any errors.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #7 on: February 24, 2020, 06:59:13 PM »
Strange thing is that I've checked /root/.acme.sh/acme.sh.log and it seems that the certificate is generated correctly. I also have checked it on the website and there is no issue with certificate, only  vhost conf missing...

Offline
*****
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #8 on: February 24, 2020, 07:26:35 PM »
please try to rebuild webserver config

caution any custom changes to vhost will be lost.

Offline
*
Re: SSL_ERROR_BAD_CERT_DOMAIN after SSL renewal
« Reply #9 on: March 06, 2020, 04:03:39 PM »
I tried to rebuild server, force all renovations and now I can't access CWP Panel :( restarting cwpsrv doesn't help. Help!
EDIT:
After some time CWP went back to normal, but the problem with disappearing vhosts still persists. Any other idea what could be the cause?
« Last Edit: March 06, 2020, 04:17:03 PM by drudesign »