翻译:

要为您的网站获得绿色挂锁并确保其安全,您需要先获得SSL 证书,然后才能继续阅读本指南。

颁发 SSL 证书

您可以从不同的提供商处订购 SSL 证书。订购 SSL 证书后,您的 SSL 提供商将需要CSR(证书签名请求)。要为您的域生成 CSR,请转到您的控制面板> SSL/TLS > 单击配置按钮,然后单击生成密钥/CSR。

从 CSR 字段复制生成的文本并将其粘贴到您的证书提供商的 SSL 页面,然后按照步骤生成 SSL 证书和私钥。

安装 SSL

如果您的域已有 SSL 证书,则可以为您的网站安装它:

为此,您将需要证书和证书的私钥。找到这些文件后,复制它们(一次一个,包括BEGIN PRIVATE KEY / CERTIFICATE 和 END PRIVATE KEY / CERTIFICATE 行)

如果您丢失了证书和私钥文件/文本,您需要按照上面的颁发 SSL 证书重新颁发证书 。

完成后,转到您的控制面板,单击SSL/TLS ,然后在您要安装证书的域前面配置。

之后,将您复制的私钥粘贴到Private Key字段中,然后单击Upload Key。

将证书文本上传到证书字段。确保在此字段中也包含Begin Certificate和End Certificate文本。

对于 Comodo 证书,您需要在证书字段中按以下顺序从以下文件中添加文本:

1- COMODORSADomainValidationSecureServerCA.crt
2- COMODORSAAddTrustCA.crt
3- AddTrustExternalCARoot.crt

检查 SSL 是否安装正确:

安装后,您需要验证 SSL 是否已正确安装并正常工作。最简单和最快的方法是使用在线 SSL 检查服务器,例如:SSL Checker

原文:

To get the green padlock for your website and make it secure, you will need to get an SSL certificate first before moving forward into this guide.

Issuing SSL Certificate

You can order an SSL certificate from different providers. Once you have ordered the SSL certificate, your SSL provider will need the CSR (Certificate Signing Request). To generate CSR for your domain, go to your Control Panel > SSL/TLS > click the Configure button, then Generate Key / CSR.

Copy the generated text from the CSR field and paste it to your certificate provider's SSL page and follow the steps to generate SSL certificate and Private Key.

Installing SSL

If you already have an SSL certificate for your domain, you can install it for your website:

To do so, you will need the certificate and the private key of your certificate. Once you find these files, copy them (one at a time, including the BEGIN PRIVATE KEY / CERTIFICATE and END PRIVATE KEY / CERTIFICATE lines)

If you have lost the Certificate and Private Key files/text, you will need to re-issue the cerificate by following Issuing SSL Certificate above.

Once done, go to your Control Panel, click SSL/TLS and then Configure in-front of the domain you want to install the certificate to.

After that, paste the private key you have copied in the Private Key field and click Upload Key.

Upload the Certificate text to Certificate field. Make sure that you include the Begin Certificate and End Certificate text also in this field.

For Comodo Certificates, you need to add text from following files in the following order in the Certificate field:

1- COMODORSADomainValidationSecureServerCA.crt
2- COMODORSAAddTrustCA.crt
3- AddTrustExternalCARoot.crt

Check if SSL is Installed Correctly:

Once installed, you need to verify that the SSL is properly installed and working. The easiest and fastest way to do that is to use an online SSL checking servier like: SSL Checker

ref:https://profreehost.com/support/ssl-https/how-to-install-an-ssl-certificate