打印

Let's encrypte ssl添加失败

Let's encrypte ssl添加失败

某一网站ssl即将过期,发现更新失败,于是手动更新,失败,删除证书后,lnmp ssl add添加证书也失败,运行语句如下:It will be processed automatically.
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
/bin/certbot [found]
index-url = https://pypi.doubanio.com/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.***.club
http-01 challenge for ***.club
Using the webroot path /home/wwwroot/www.***.club for all unmatched domains.
Waiting for verification...
Cleaning up challenges
live directory exists for www.***.club
Let's Encrypt SSL Certificate create failed!



附件是失败的log,已经替换了网站信息。

单独运行 /bin/certbot   有以下提示
certbot
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Failed to find executable apachectl in PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
nginx: configuration file /etc/nginx/nginx.conf test failed

Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.


请问军哥,这个该怎么解决呢。
附件: 您所在的用户组无法下载或查看附件

TOP

安装配置文件路径看不上lnmp的nginx,你系统上有非lnmp安装的nginx,可能是通过apt-get或yum方式安装的
因为不上lnmp的nginx所有肯定是无法控制进行生成ssl证书的

TOP

回复 2# 的帖子

我通过update.sh重新升级了nginx,这样也不行吗

2 我看了下yum update的升级日志,没有Nginx的字眼,这么久也能确定没通过其他方式安装Nginx。现在怎么做才能改回默认路径呢。

[ 本帖最后由 dcdcc 于 2017-11-10 15:29 编辑 ]
附件: 您所在的用户组无法下载或查看附件

TOP

回复 3# 的帖子

升级只是升级lnmp的nginx不会影响到你这个通过其他方式安装的nginx
你得卸载掉这个多出来的nginx才行

TOP