gpt4 book ai didi

google-app-engine - GAE SSL 证书要求

转载 作者:太空宇宙 更新时间:2023-11-03 13:04:21 24 4
gpt4 key购买 nike

我需要一些帮助来为 GAE 上的应用程序设置 SSL。通过由 Google Apps 管理的自定义域,我有一个与我的 GAE 应用相关联的域。但是我的应用程序是通过属于别名的 url 访问的。因此,例如我的 Google 应用程序域是 abc.com 并且有一个别名 cde.com,我的 Appengine 应用程序正在使用 url https://cde.com 访问。

现在我正在尝试设置 SSL,并且我已经将证书上传到 Google Apps。不幸的是,我无法将此证书用于我的 appengine 应用程序,因为域别名似乎未被识别。我阅读了证书要求,其中指出:

单域/主机名自签名通配符主题备用名称

这是否意味着 Appengine 上的 SSL 将支持域别名?

最佳答案

我会尝试它的工作:

1- 创建配置文件

[req] 
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = FR
ST = HS
L = Somewhere
O = Organisation
OU = Organisation_Unit
CN = *.yourcustomaliasdomain.com
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth

不要忘记用应用引擎上的域配置替换 *.yourcustomaliasdomain.com

2- 创建 RSA key

openssl genrsa -out key.pem 2048

3- 创建请求签名

openssl req -new -key key.pem -out request.pem -config config

config是配置文件

4- 创建证书

openssl x509 -req -days 3650 -in request.pem -signkey key.pem -out cert.pem

5- 上传和配置

在您的谷歌应用程序控制台上上传 cert.pem 和 key.pem 作为说明 here选择您的 ssl 类型,通常应用引擎 url 必须与您的证书匹配,您可以添加它。

关于google-app-engine - GAE SSL 证书要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14104701/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com