Apache插件不适用于Let';s加密
我正试图用Let's Encrypt保护我的CentOS 7 VPS。我已经遵循了这项指南。我已经设置了虚拟主机,安装了服务器依赖项和Let's Encrypt客户端。但当我尝试使用以下设置SSL证书时:Apache插件不适用于Let';s加密,apache,centos7,lets-encrypt,Apache,Centos7,Lets Encrypt,我正试图用Let's Encrypt保护我的CentOS 7 VPS。我已经遵循了这项指南。我已经设置了虚拟主机,安装了服务器依赖项和Let's Encrypt客户端。但当我尝试使用以下设置SSL证书时: ./letsencrypt-auto --apache -d example.com -d mail.example.com 我得到一个错误: The apache plugin is not working; there may be problems with your
./letsencrypt-auto --apache -d example.com -d mail.example.com
我得到一个错误:
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError()
Let's Encrypt的Apache插件不起作用,但如何使其起作用?很明显,它们是letsencrypt自动脚本中的一个错误,您可以使用此命令来完成此工作
sudo certbot --authenticator standalone --installer apache -d <yourdomain> --pre-hook "systemctl stop apache2" --post-hook "systemctl start apache2"
sudo certbot--独立身份验证程序--安装程序apache-d--预挂接“systemctl stop apache2”--后挂接“systemctl start apache2”
这个答案无效。在我的例子中,我检查了apache配置文件,发现它的末尾有一行没有意义。删除它后,续费继续进行,没有出现问题在CentOS 7和Apache 2.4上出现相同的错误。通过我的配置检查,有两条IfModule行未使用/IfModule关闭。Apache对它们没问题,但certbot解析器显然不行。希望这能帮助别人