Connect to s3 site securely

0

I've set up a small test site at quickbooksonlineexpert.co.uk using an S3 bucket which I can connect to over a non-secure connection.

Another bucket on S3 namely www.quickbooksonlineexpert.co.uk points to quickbooksonlineexpert.co.uk

I now want an SSL in place, so have obtained a DNS-checked SSL from the Amazon Cert Manager using the credentials on my DNS host (cloudflare)

This is shown with an ISSUED status on the domain name quickbooksonlineexpert.co.uk. (I requested both quickbooksonlineexpert.co.uk and www.quickbooksonlineexpert.co.uk)

I realise that I cannot simply add the SSL to the S3 bucket, but instead need to do this through CloudFront

A CloudFront distribution has been setup, but I must be missing some further config, as although I can see how to add the SSL from the Cert Manager, as soon as I enter https://quickbooksonlineexpert.co.uk I am unable to connect - I receive a "Took too long to respond" error message

On CloudFront I chose:
quickbooksonlineexpert.co.uk.s3.amazonaws.com for the Origin
Redirect HTTP to HTTPS
Custom SSL (quickbooksonlineexpert.co.uk)

Should there be any more config changes?

Any help is appreciated
thanks

已提问 3 年前185 查看次数
1 回答
1

I'd spent several days on this and could see from various forums that several others had hit the same problem. I have now resolved my particular issue so thought I would add the additional changes in case it helps anyone later.

My problem was that I didn't see in any of the articles that you now had to change your DNS hosting (I wasn't using Route 53) to ensure that there was now a CNAME pointing to the CloudFront distribution. I changed my DNS entry of quickbooksonlineexpert.co.uk from pointing at the S3 bucket, to now point to the CloudFront dist (987iouyoiy****.cloudfront.net)

As well as this I added index.html to the Default Root Object in the Dist.

Once the distribution had updated its Status, I could now access the site correctly on HTTPS

已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则