google-cloud-platform - 使用 Pem 文件获取公钥/私钥
问题描述
我的证书是 Contains Private Key
,Root Chain
和 Format 是Base64(openSSL)
我的证书内容。(mycert.pem):
subject=CN=MainDomain.com, OU=ISD, O=GIT Inc, S=AR, C=US
issuer=CN=ABC, DC=homeoffice, DC=ABC, DC=com
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
subject=CN=-TLS-01-SHA256, DC=homeoffice, DC=ABC, DC=com
issuer=CN=ABC01-SHA256, DC=homeoffice, DC=ABC, DC=com
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
subject=CN=-TLSRoot-01-SHA256, DC=homeoffice, DC=ABC, DC=com
issuer=CN=ABC01-SHA256, DC=homeoffice, DC=ABC, DC=com
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
subject=CN=-TLSSOME-01-SHA256, DC=homeoffice, DC=ABC, DC=com
issuer=CN=ABC01-SHA256, DC=homeoffice, DC=ABC, DC=com
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
-----END RSA PRIVATE KEY-----
我需要在 GCP 负载均衡器端提供这些东西
Public key certificate (.crt file)
Certificate chain (.csr file)
Private key (.key file).
我怎样才能生成这些东西?我可以直接复制粘贴内容吗?它与我的pem
文件中提供的内容相同吗
解决方案
Yes, you can simply copy/paste your certificate content or upload it, as it's described here:
- Go to the Network Services> Load Balancing> Certificates tab in the Google Cloud Console.
- Click Create SSL certificate.
- Enter a name and an optional description for the certificate.
- Select Upload my certificate.
- Paste in your certificate or click Upload to navigate to your certificate file. You can choose to include the CA certificate chain in the same file as the certificate. Google Cloud does not validate the certificate chain for you – validation is your responsibility.
- Paste in your private key or click Upload to navigate to your private key file.
- Click Create.
If you have any other question about how to Use self-managed SSL certificates, here is the Google public documentation link:
https://cloud.google.com/load-balancing/docs/ssl-certificates/self-managed-certs#createresoure
推荐阅读
- batch-file - 如何对目录中的所有 .cs 文件运行命令并将文件路径存储为变量以用作 Windows 上的命令
- apache - 在移动设备上使用 ssl 时网站不显示,但在桌面上显示
- python - xlwings:在 Mac 上专门从 python 设置单元格格式
- javascript - 如何使 javascript carousel 的过滤器起作用
- vba - 表单上的按钮代码以在 ms 访问中更新表
- regex - 正则表达式中带有单词边界的多个断言
- c# - 在类内设置参数,Null 对象
- python - 如何将嵌套列表转换为 Python 中的字典列表?
- java - 从 Java 对象中获取所有相似的对象
- vba - 今天日期的访问日期查询问题