简体   繁体   English

如何在Google Cloud Platform上安装Godaddy SSL证书

[英]How to Install a Godaddy SSL Certificate on Google Cloud Platform

How do you transfer a Godaddy SSL certificate to the Google Cloud Platform? 如何将Godaddy SSL证书转移到Google云端平台?

I am trying to setup an HTTPS load balancer on Google Cloud. 我正在尝试在Google Cloud上设置HTTPS负载均衡器。 I have an SSL certificate from Godaddy, but I'm not sure how to input it into Google Cloud. 我有来自Godaddy的SSL证书,但我不确定如何将其输入到Google Cloud中。 Google has a form to enter a public key, a certificate chain, and a private key all in .pem format (see screenshot below). Google有一个表单可以输入.pem格式的公钥,证书链和私钥(请参见下面的屏幕截图)。 Godaddy provides me with three files: (1) a file called #####.crt , (2) a file called gd_bundle-g2-g1.crt , and (3) an RSA private key. Godaddy为我提供了三个文件:(1)一个名为#####.crt的文件,(2)一个名为gd_bundle-g2-g1.crt的文件,以及(3)一个RSA私钥。

I've seen other SO questions on converting .crt to .pem , but I'm not sure what what to do with the .pem files when I have them or which of these three files go into which box in the GCE console below. 我见过的将其他SO问题.crt.pem ,但我不知道什么什么与做.pem文件时,我有他们或这三个文件的走在下面的GCE控制台哪个箱子之中。

在此输入图像描述

This happened to me, good to know I'm not alone! 这发生在我身上,很高兴知道我并不孤单!

Plain and simple answer: Godaddy will give you a certificate file and a bundle file. 简单明了的答案:Godaddy将为您提供证书文件和捆绑文件。 They all come already on PEM format (as long as it says BEGIN CERTIFICATE you know it's PEM). 他们都已经采用PEM格式(只要它说BEGIN CERTIFICATE,你就知道它是PEM)。

Copy and paste the contents of the #####.crt file on the "Public key certificate" field, it should display the correct information on the right side of the field. 将“#####。crt”文件的内容复制并粘贴到“公钥证书”字段中,它应该在该字段的右侧显示正确的信息。

Copy and paste the contents of the certificate bundle on the "Certificate chain". 将证书包的内容复制并粘贴到“证书链”上。 This file usually has 3 certificates on it. 该文件通常有3个证书。

Finally, copy and paste the contents of your private key on the last field. 最后,将私钥的内容复制并粘贴到最后一个字段中。

Double check that your certificate is working correctly on both desktop and mobile. 仔细检查您的证书在桌面和移动设备上是否正常运行。 If it works on desktop but not mobile try again, it means you made a mistake filling the "Certificate chain" field. 如果它在桌面上工作但不能在移动设备上再次尝试,则意味着填写“证书链”字段时出错。

Hope this helps! 希望这可以帮助!

AFAIK你不需要将文件转换为PEM,确定它已经是一个PEM文件,确保file gd_bundle-g2-g1.crtfile #####.crt输出应该像PEM certificate ,你把私钥复制到“私钥”,你拿.crt文件并复制到“公钥证书”一旦你这样做了一些信息将出现在这些框的右侧,在我的情况下,我复制了相同的“证书链”上的.crt文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM