SSL certificate with S3 bucket

0

I created 2 buckets in S3, one is main domain and the second one is subdomain both in the region of Mumbai. I want to include SSL certificate on my domain for that I acquired SSL certificate from ACM (Origin is Virginia) and made a cloudfront distribution to create connection between S3 bucket and SSL certificate, I successfully created distribution and linked it with main domain and created its records in DNS but still my domain is running on http instead of https.

1 個回答
1

Hello,

When your origin is an Amazon S3 bucket, your options for using HTTPS for communications with CloudFront depend on how you're using the bucket. If your Amazon S3 bucket is configured as a website endpoint, you can't configure CloudFront to use HTTPS to communicate with your origin because Amazon S3 doesn't support HTTPS connections in that configuration.

If you want to require HTTPS for communication between CloudFront and Amazon S3, you must change the value of Viewer Protocol Policy to Redirect HTTP to HTTPS or HTTPS Only.

Can you confirm if the above 2 requirements have been checked ?

Check the below articles and you ll be able to better configure and understand the same. [1] https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-https-requests-s3/

[2] https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-cloudfront-to-s3-origin.html

profile pictureAWS
支援工程師
已回答 2 年前
profile pictureAWS
專家
Chris_G
已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南