william007
william007

Reputation: 18547

SSL certificate issue with www

I have configured the CName record on GoDaddy to point www to @ and I created an SSL Certificate for mydomain.com.

I have no problem accessing it via https://example.com, but it throws SSL exception

"Websites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for www.example.com. The certificate is only valid for example.com."

if I access it via https://www.example.com.

What's the issue with that - since I have created the CName mapping for www.

Upvotes: 1

Views: 923

Answers (1)

Alexey R.
Alexey R.

Reputation: 8686

When your browser checks certificate, it just takes what's between https:// and / (if any). Since www.example.com does not match the subject in your SSL cert, the validation fails.

You need to check the knowledge base of your CA to generate a proper certificate which would have www.example.com listed as the alias in your certificate.

Upvotes: 1

Related Questions