3

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?

  • I think you mean you set up the CNAME in Cloudflare, not Cloudfront. Please edit the question. – webjunkie Feb 7 '15 at 15:57
2

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.

  • 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 1 '15 at 8: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 5 '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 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.