SSL on appspot.com subdomain of non-default versio

2019-02-27 04:00发布

I want to use SSL on the non-default version of my GAE app. For the normal https://my-app.appspot.com I know I don't have to do a thing. However I have another version, which would be under https://v2.my-app.appspot.com and there SSL doesn't work. It gives following error in the browser:

Your connection is not private

Attackers might be trying to steal your information from dev.replimeapp.appspot.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

1条回答
甜甜的少女心
2楼-- · 2019-02-27 04:20

Use following address instead: https://v2-dot-my-app.appspot.com/

Google does not issue SSL certificates for double-wildcard domains hosted at appspot.com. Therefore with HTTPS you must use the string "-dot-" instead of "." to separate subdomains, as shown in the examples below. You can use a simple "." with your own custom domain or with HTTP addresses.

From there: https://cloud.google.com/appengine/docs/java/config/webxml#Secure_URLs

查看更多
登录 后发表回答