licess 发表于 2018-4-11 09:11:23


# lnmp ssl add
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|            https://lnmp.org             |
+-------------------------------------------+
Please enter domain(example: www.lnmp.org): www.lyfhtzy.com
Your domain: www.lyfhtzy.com
Enter more domain name(example: lnmp.org *.lnmp.org):
Please enter the directory for domain www.lyfhtzy.com: /home/wwwroot/www.lyfhtzy.com
Allow Rewrite rule? (y/n)
You choose rewrite: none
Allow access log? (y/n)
Disable access log.
Enable PHP Pathinfo? (y/n)
Disable pathinfo.
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 2
It will be processed automatically.
/usr/local/acme.sh/acme.sh
Starting create SSL Certificate use Let's Encrypt...
Single domain='www.lyfhtzy.com'
Getting domain auth token for each domain
Getting webroot for domain='www.lyfhtzy.com'
Getting new-authz for domain='www.lyfhtzy.com'
The new-authz request is ok.
Verifying:www.lyfhtzy.com
Pending
Success
Verify finished, start to sign.
Cert success.
Your cert is in/usr/local/nginx/conf/ssl/www.lyfhtzy.com/www.lyfhtzy.com.cer
Your cert key is in/usr/local/nginx/conf/ssl/www.lyfhtzy.com/www.lyfhtzy.com.key
The intermediate CA cert is in/usr/local/nginx/conf/ssl/www.lyfhtzy.com/ca.cer
And the full chain certs is there:/usr/local/nginx/conf/ssl/www.lyfhtzy.com/fullchain.cer
Run reload cmd: /etc/init.d/nginx reload
Reload service nginx...done
Reload success
Let's Encrypt SSL Certificate create successfully.
升级到1.5后,添加完全正常

cyccc 发表于 2019-7-30 14:25:50

licess 发表于 2018-4-11 09:11
升级到1.5后,添加完全正常

我的用的lnmp1.6,vhost已经添加,使用lnmp ssl add 的时候总是失败,后来看到你这个内容,好好比对一下,发现问题,如下这几项我都是选择y ,所以失败, 我再次按照你这内容,全部选择n,然后正常获取到证书了,感谢!
Allow Rewrite rule? (y/n)
You choose rewrite: none
Allow access log? (y/n)
Disable access log.
Enable PHP Pathinfo? (y/n)
Disable pathinfo.
页: 1 [2]
查看完整版本: Lnmp添加ssl失败