简体   繁体   中英

(GCP Cloud CDN) bucket http works but https doesn't

I have set up a CDN by following this document: https://cloud.google.com/cdn/docs/setting-up-cdn-with-bucket

  1. http (with port 80)
  2. https (with port 443) with a google-managed certificate
  3. example.com is pointing to the load balancer's ip adress (google domains)
  4. the certificate says example.com is active
  5. simple index.html is in the backend bucket

I can load http://example.com fine but it is insecure. When I load https://example.com on chrome I get the following:

This site can't provide a secure connection
mydomain.com uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Can somebody help me set up Cloud CDN with https using GCP storage?

EDIT: trying adding AAAA following How do you serve a static website using Google Cloud CDN, Google Cloud Storage, and a custom domain?
Requestor Pays was already off
The permission was to allUsers with Storage Object Viewer

EDIT2: adding AAAA didn't work for me

EDIT3: Got rid of AAAA. It is working now... I guess it takes quite long

  1. Yes, depending on your domain provider. Normally, the longest takes up to 78 hours.
  2. You need to enable the http-https redirect. You need to configure the http frontend, and there you have the option to enable the http-https redirect.
  3. I would assume that you did not add the external IP of the Load Balancer as one of the domains accepted by your SSL certificate (and you shouldn't have to), so it will not really load the page via https://(LoadBalancer-IPAddress)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM