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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ