我们从123reg网站获得了SSL证书。但在我们的服务器中已为SSL安装了letencrypt,因此我们只需添加包含letencrypt证书文件的证书文件,例如 我们将证书文件(新)保存到/ etc / letsencrypt / {site-name}。
我们将000-default-le-ssl.conf文件更改为如下所示的证书
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/safco
ServerName example.com
Redirect Permanent / https://example.com/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/shop/shop.crt
SSLCertificateKeyFile /etc/letsencrypt/shop/shop.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/shop/intermediate.pem
Redirect Permanent / https://example.com/
</VirtualHost>
但它也表明您的连接不是私有的。 但是当我尝试删除
Include /etc/letsencrypt/options-ssl-apache.conf
从000-default-le-ssl.conf文件apache重新启动。
如何在letsencrypt中安装简单的第三方SSL证书?