title: Using Cloudflare CDN + HTTPS with Google Cloud Storage
body: <p>I’m trying to figure out how to get my Google Cloud Storage bucket to work with Cloudflare. I followed the steps here <a href="https://cloud.google.com/storage/docs/static-website" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/static-website</a> and did the following:</p>
  
  <ol>
  <li><p>Added a cname record for where I want to serve my content: cdn.test.stellarguard.me -> c.storage.googleapis.com</p></li>
  <li><p>Added a cloud storage bucket for cdn.test.stellarguard.me</p></li>
  <li><p>Uploaded a file and made it public: <a href="https://storage.googleapis.com/cdn.test.stellarguard.me/logo.svg" rel="nofollow noreferrer">https://storage.googleapis.com/cdn.test.stellarguard.me/logo.svg</a></p></li>
  </ol>
  
  <p>However, when I go to <a href="https://cdn.test.stellarguard.me/logo.svg" rel="nofollow noreferrer">https://cdn.test.stellarguard.me/logo.svg</a> I see an error that there’s an SSL version mismatch. This is probably because of what is mentioned here (<a href="https://cloud.google.com/storage/docs/static-website#https" rel="nofollow noreferrer">https://cloud.google.com/storage/docs/static-website#https</a>):</p>
  
  <blockquote>
    <p>While you can serve your content through HTTPS using direct URI’s such
    as , when hosting a static website using a CNAME redirect, Cloud
    Storage only supports HTTP. To serve your content through a custom
    domain over SSL, set up a load balancer, use a third-party Content
    Delivery Network with Cloud Storage, or serve your static website
    content from Firebase Hosting instead of Cloud Storage.</p>
  </blockquote>
  
  <p>So I did a little searching and saw someone suggested turning on Flexible SSL (<a href="https://stackoverflow.com/questions/35116278/use-cloudflare-to-cdn-a-google-cloud-storage-bucket">Use CloudFlare to CDN a Google Cloud Storage Bucket</a>), so I added a Page Rule:</p>
  
  <p><code>*cdn.test.stellarguard.me/*</code> - SSL - Flexible</p>
  
  <p>However, the error still persists. Any ideas?</p>