Search code examples
amazon-web-servicesamazon-s3subdomainamazon-cloudfrontamazon-route53

Subdomain with WWW not secured even with a SSL Certificate


I have requested a certificate in AWS Certificate Manager for its Domain Name and its Subdomain and it's already issued.

example.com
*.example.com

I have check each domain and subdomain with www and with non-www

https://www.example.com // secured
https://example.com // secured

https://www.subdomain.example.com // not secured
https://subdomain.example.com // secured

I have use S3 bucket for Static Web Hosting and CloudFront for the app.

What is the reason for this? Am I doing this right?


Solution

  • Your certificate would need to include:

    example.com
    *.example.com
    *.subdomain.example.com