Google Compute Engine 上来自 GoDaddy 的 SSL 证书
SSL Certificate from GoDaddy on Google Compute Engine
我正在尝试将 SSL Certificate
添加到我在 Google Compute Engine 上的虚拟机实例 我创建了密钥文件并生成了一个 CSR File
,我将其复制到 GoDaddy 以请求SSL Certificate
.
我复制了他们发给我的内容并粘贴到一个文件名中example.csr
然后我 运行 实例中的这一行:
gcloud compute ssl-certificates create certificate1 --certificate example.csr --private-key example.key
当我列出我的 ssl 证书时,我得到:
NAME CREATION_TIMESTAMP
certificate1 2017-03-08T09:21:04.166-08:00
但我不明白为什么我的 webapp 还不安全。当我进入 url 时,它仍然说不安全。
编辑
虽然我从未使用过Google Compute Engine,但我相信(在阅读了您链接的文档之后)您刚刚添加了证书,但您仍然需要配置它:
To use HTTPS or SSL load balancing, you must create an SslCertificate resource that can be used by your target proxy.
Note: SslCertificate resources are used only with load balancing
proxies such as a target HTTPS proxy or target SSL proxy. See that
documentation for when and how to use SslCertificate resources.
SslCertificate resources are not used on individual instances. On an
instance, install the normal SSL certificate as described in your
application documentation.
我建议阅读文档提供的链接(上方),具体取决于您要执行的操作(使用 HTTPS 代理、SSL 代理或单个实例)。
简答:
我们还不能这样做。
中等长度答案:
实际上,我必须直接在我的应用程序上安装 SSL 证书。
我正在尝试将 SSL Certificate
添加到我在 Google Compute Engine 上的虚拟机实例 我创建了密钥文件并生成了一个 CSR File
,我将其复制到 GoDaddy 以请求SSL Certificate
.
我复制了他们发给我的内容并粘贴到一个文件名中example.csr
然后我 运行 实例中的这一行:
gcloud compute ssl-certificates create certificate1 --certificate example.csr --private-key example.key
当我列出我的 ssl 证书时,我得到:
NAME CREATION_TIMESTAMP
certificate1 2017-03-08T09:21:04.166-08:00
但我不明白为什么我的 webapp 还不安全。当我进入 url 时,它仍然说不安全。
编辑
虽然我从未使用过Google Compute Engine,但我相信(在阅读了您链接的文档之后)您刚刚添加了证书,但您仍然需要配置它:
To use HTTPS or SSL load balancing, you must create an SslCertificate resource that can be used by your target proxy.
Note: SslCertificate resources are used only with load balancing proxies such as a target HTTPS proxy or target SSL proxy. See that documentation for when and how to use SslCertificate resources. SslCertificate resources are not used on individual instances. On an instance, install the normal SSL certificate as described in your application documentation.
我建议阅读文档提供的链接(上方),具体取决于您要执行的操作(使用 HTTPS 代理、SSL 代理或单个实例)。
简答: 我们还不能这样做。
中等长度答案: 实际上,我必须直接在我的应用程序上安装 SSL 证书。