【问题标题】:"Unable to install the certificate" error when installing LetsEncrypt ssl certificate安装 LetsEncrypt ssl 证书时出现“无法安装证书”错误
【发布时间】:2018-02-20 17:43:39
【问题描述】:

我正在尝试安装 Lets Encrypt,但没有成功。我收到以下错误:

Keeping the existing certificate
Could not reverse map the HTTPS VirtualHost to the original

IMPORTANT NOTES:

Unable to install the certificate
Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/www.deals4u.co.il/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/www.deals4u.co.il/privkey.pem Your cert will expire on 2018-05-19. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew all of your certificates, run "certbot renew"

我的 conf 文件如下所示:

<VirtualHost *:80>
    ServerName deals4u.co.il
    ServerAlias www.deals4u.co.il
    DocumentRoot /var/www/html
    <Directory /var/www/html/>
        Options Indexes FollowSymLinks
        AllowOverride All
    </Directory>
</VirtualHost>

【问题讨论】:

  • 你设置了监听443的虚拟主机吗?

标签: ubuntu ssl apache2 lets-encrypt


【解决方案1】:

用类似的ServerName 删除VirtualHosts 为我解决了这个问题。

如果您的配置中没有 VirtualHosts,请尝试删除 ServerAlias

【讨论】:

    猜你喜欢
    • 2021-09-13
    • 2023-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-19
    • 2016-08-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多