I have a site hosted on bitnami wordpress instance. When I visit `https://www.mysite.com`, no issues. When I visit `https://mysite.com` I get `Insecure connection – ERR_CERT_COMMON_NAME_INVALID`
My SSL certificate shows the following for Common Name:
Common Name *.mysite.com
curl output:
* `curl -I mysite.com` used to give me the following output
“`
HTTP/1.1 200 OK
Date: Mon, 03 Oct 2022 11:20:03 GMT
Server: Apache
…
“`
* I tried following [this guide])
– `curl -I mysite.com` now gives me the following:
“`
HTTP/1.1 302 Found
Date: Mon, 03 Oct 2022 11:12:55 GMT
Server: Apache
…
“`
* Ideally I want it to show (?):
`HTTP/1.1 301 Moved Permanently`
Where is my mistake?
I suspect it’s a redirect issue, but I’m kind of stuck in a loop here.
[ad_2]
Your certificate needs to have http://WWW.SITE.COM as a subject alternative name.
I’d do this either with a WP plugin or in htaccess in the root of your WP installation, both options discussed here,