4

I'm trying to use Cloudflare to provide https access to an s3 bucket. I've setup the CNAME entry in Cloudfront with pointing to the bucket and I've verified I can access it via http but when I try and access the contents with https, I get a 521 error saying the server i.e. bucket is unavailable.

Is it possible to front an s3 bucket with https through cloudflare or is it being blocked?

sgargan
  • 235
  • 1
  • 3
  • 5

1 Answers1

3

Do you use Cloudflare with "Flexible SSL" or "Full SSL"?

For "Full SSL", this works for me:

Of course with Full SSL on Cloudflare, using https for your actual website means you need a cert on your own server aswell.

webjunkie
  • 159
  • 7
  • From my testing this doesn't work. If you accept the the untrusted certain it will kind of work, though the SSL on the main website will gain a warning. If you don't accept the cert Chrome at least won't load the image. – amjoconn Sep 30 '15 at 18:19
  • Well, I have this live and running. You won't get a browser warning if Cloudflare is in front of it, and unless you do "Strict SSL" as they call it, the name mismatch between your CNAME vs. the domain in S3's cert will not matter. – webjunkie Oct 01 '15 at 08:25
  • 1
    With Full SSL and the default settings it won't work, so at best the answer needs to be updated to include instructing cloudflare to be lax about upstream SSL. – amjoconn Oct 05 '15 at 18:23
  • @webjunkie can you provide a link to your site where this is currently running? – Mathias Lykkegaard Lorenzen May 18 '20 at 09:16