Https://my_domain.com is secured but https//www.my_domain.com is not secured

Keywords: LAMP/MAMP/WAMP - AWS - How to - Secure Connections (SSL/HTTPS)

Description:
Hello, i discovered today that when i try to access my site via “https://www.my_domain.com” the ssl certificate is not available but when i access the site via “https://my_domain.com” the certificate is there.
What can i do? i want my site accessible with “www” to be secured.

Thanks for your time, i hope i am clear enough

Or, maybe force the redirection from www.my_domain.com to https://my_domain.com ?

Hello @florian2A,

The cause for this should be that the SSL certificate you have is only valid for my_domain.com. You would need to generate an SSL adding both www.my_domain.com and my_domain.com as domains.

In this case, the redirecting wouldn’t solve the issue as the www.my_domain.com itself would still be insecure.

If you used our bncert-tool to generate the certificates you just need to rerun the tool and specify both domains.

Regards,
Francisco de Paz

1 Like

Hello fdepaz, thanks a lot for your time and your answer.
I will do as you recommend.

Have a great day.

Florian

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.