【发布时间】:2017-02-28 06:25:03
【问题描述】:
所以我删除了证书,认为我需要这样做,因为我有一个新域名。我目前遇到了当前的错误:
Root@Site:~$ certbot-auto --apache -d example.io -d www.example.io
Requesting root privileges to run certbot...
/home/maiale/.local/share/letsencrypt/bin/letsencrypt --apache -d example.io -d www.maiale.io
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.
AH00526: Syntax error on line 35 of /etc/apache2/sites-enabled/000-default-le-ssl.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/maialedesigns.com/cert.pem' does not exist or is empty
The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apache2ctl configtest.\nAction 'configtest' failed.\nThe Apache error log may have more information.\n\nAH00526: Syntax error on line 35 of /etc/apache2/sites-enabled/000-default-le-ssl.conf:\nSSLCertificateFile: file '/etc/letsencrypt/live/example.com/cert.pem' does not exist or is empty\n",)
这是我尝试运行./certbot-auto 或./certbot-auto --apache 时得到的结果。
有没有办法解决这个问题?
如果您需要更多信息,请告诉我。
编辑:这是运行 Ubuntu 14.04.4
【问题讨论】:
-
您需要先将您的域添加到您的 Apache 虚拟主机,您是否尝试使用在您的 Apache 虚拟主机中注册并启用站点的域?
-
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地方。另见Where do I post questions about Dev Ops?
标签: ssl ssl-certificate lets-encrypt