Let's Encrypt plesk 扩展创建无效的 vhost 配置

Let's Encrypt plesk 扩展创建无效的 vhost 配置

我已经安装了Let's Encrypt 扩展在 Plesk 中,它会自动更新提供给 Apache 的证书。但今天我收到了以下电子邮件,提醒我更新证书:

发件人:Let's Encrypt Expiry Bot 日期:2017-06-27 0:13 GMT+02:00 主题:Let's Encrypt 域名“***.ch”证书到期通知 收件人:info@***.ch

你好,

您下面列出的名称的证书将在 19 天后过期(2017 年 7 月 16 日 18:40 +0000)。请确保在此之前续订证书,否则您的网站访问者将遇到错误。

[...]

当我尝试在扩展设置中更新证书时,收到以下错误消息:

Error: Let's Encrypt SSL certificate installation failed: Challenge marked as invalid.
Details: Fetching http://***.be/.well-known/acme-challenge/***: Error getting validation data 

那时网络服务器停止工作,并且重新启动也不起作用:

# service apache2 start
 * Starting web server apache2
Syntax error on line 54 of /etc/apache2/plesk.conf.d/vhosts/****.ch.conf:
SSLCertificateFile: file '/opt/psa/var/certificates/cert-***' does not exist or is empty
Action 'start' failed.
The Apache error log may have more information.

配置的证书文件丢失,发生了什么,我该如何修复?

答案1

使用 Plesk 重新创建 Apache 配置修复了证书的路径:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

相关内容