使用 https 访问我的应用程序时无法运行我的应用程序

While accessing my app using https then not working my app

我正在使用 java 开发应用程序引擎项目 GWT.i 我正在使用 https 访问我的应用程序,然后我无法访问我的应用程序。为什么我不使用 https 访问我的应用程序? 使用 https 浏览器显示访问我的应用时,如图所示

有什么帮助吗?

提前致谢

正如您浏览器中的错误消息所述,证书公用名不匹配。您的应用程序为 vijay 提供了证书。evadev014.appspot.com 但您正在尝试访问 sample.myapp.appspot.com

有两种方法可以在生产环境中解决此问题:

  1. 获取 sample.myapp.appspot.com 的证书并确保您的应用程序提供该证书
  2. 以 vijay.evadev014.appspot.com 指向您的应用程序并通过该地址访问它的方式更改您的配置

如果只是为了快速测试,您可以随时单击高级并忽略此异常这不会解决其他用户的问题

哦,您在上一个问题中没有说明您使用的是 vijay.evadev014.appspot.com 这样的 4 级域,这一点很重要。 Google 为 appspot.com 配置的 SSL 证书仅为第 3 级域,为 *.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.

所以如果你想使用这个证书你应该使用 url 就像 https://vijay-dot-evadev014.appspot.com

正如您提到的,您有 vijay.evadev014.appspot.com,它被称为 appspot.com 的二级子域。但是,appspot 使用的是通配符 SSL 证书和为 *.appspot.com 颁发的证书。

通配符 SSL 证书只能保护通用名称上的一级子域。您应该通过一级子域(例如:vijayevadev014.appspot.com)来享受使用 appspot 的安全环境。