Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: aamirrajpoot on December 14, 2018, 10:26:47 AM

Title: AutoSSL not adding on www
Post by: aamirrajpoot on December 14, 2018, 10:26:47 AM
I recently have transferred my domain to CWP and I am getting error .. NET::ERR_CERT_COMMON_NAME_INVALID

My domain is https://www.pgrepublic.com
Title: Re: AutoSSL not adding on www
Post by: Jamshed Datori on December 14, 2018, 01:29:49 PM
I could see that SSL is properly installed on your website https://www.sslshopper.com/ssl-checker.html#hostname=pgrepublic.com

Are you using apache or any other webserver?

Try to restart apache to see the affect.
Title: Re: AutoSSL not adding on www
Post by: randyproxz on December 14, 2018, 01:38:44 PM
I recently have transferred my domain to CWP and I am getting error .. NET::ERR_CERT_COMMON_NAME_INVALID

My domain is https://www.pgrepublic.com

If your htaccess redirect to www try to remove www and redirect to https://pgrepublic.com

Or simply add redirect on vhost :

Code: [Select]
<VirtualHost *:80>
ServerName www.example.com
Redirect / https://example.com/ <== add this line below ServerName
</VirtualHost>
Title: Re: AutoSSL not adding on www
Post by: aamirrajpoot on December 14, 2018, 02:16:39 PM
I could see that SSL is properly installed on your website https://www.sslshopper.com/ssl-checker.html#hostname=pgrepublic.com

Are you using apache or any other webserver?

Try to restart apache to see the affect.

Yes I restarted the apache, even restarted whole server couple of times. No effect
Title: Re: AutoSSL not adding on www
Post by: aamirrajpoot on December 14, 2018, 02:20:41 PM
I recently have transferred my domain to CWP and I am getting error .. NET::ERR_CERT_COMMON_NAME_INVALID

My domain is https://www.pgrepublic.com

If your htaccess redirect to www try to remove www and redirect to https://pgrepublic.com

Or simply add redirect on vhost :

Code: [Select]
<VirtualHost *:80>
ServerName www.example.com
Redirect / https://example.com/ <== add this line below ServerName
</VirtualHost>


I can try that, but this is not the solution to the problem. AutoSSL should generate for both pgrepublic.com and www.pgrepublic.com. Other thing is SEO and bank links which I am afraid of
Title: Re: AutoSSL not adding on www
Post by: aamirrajpoot on December 14, 2018, 02:32:08 PM
I could see that SSL is properly installed on your website https://www.sslshopper.com/ssl-checker.html#hostname=pgrepublic.com

Are you using apache or any other webserver?

Try to restart apache to see the affect.

if you check https://www.sslshopper.com/ssl-checker.html#hostname=www.pgrepublic.com you will notice "None of the common names in the certificate match the name that was entered (www.pgrepublic.com). You may receive an error when accessing this site in a web browser."
Title: Re: AutoSSL not adding on www
Post by: josemnunez on December 14, 2018, 03:03:38 PM
You must remove the redirect from http to https before generating the Auto ssl, then you could place it again
Title: Re: AutoSSL not adding on www
Post by: aamirrajpoot on December 14, 2018, 03:26:12 PM
You must remove the redirect from http to https before generating the Auto ssl, then you could place it again

Thanks @josemnunez, that was the issue.

For any one coming here or future me.

If wordpress is hosted on HTTPS first and then moved to CWP. need to change `siteurl` and `home` values to be without https in `wp_options` table. This will stop the redirect to https. Then generate the certificate.

It does solve my problem