Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started 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
-
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.
-
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 :
<VirtualHost *:80>
ServerName www.example.com
Redirect / https://example.com/ <== add this line below ServerName
</VirtualHost>
-
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
-
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 :
<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
-
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."
-
You must remove the redirect from http to https before generating the Auto ssl, then you could place it again
-
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