VPS侦探论坛

 找回密码
 注册
查看: 2943|回复: 4

lnmp1.6 添加Let's Encrypt 证书出错

[复制链接]
发表于 2019-9-26 09:31:26 | 显示全部楼层 |阅读模式



昨天重装了一下系统,发现lnmp1.6 在添加Let's Encrypt 证书时被卡住了,无法安装下去。重试了几次,如果选1用自已的证书,是可以成功安装的。如果选2选择申请Let's Encrypt 证书时,就会被卡住了。因此这个问题可能是要更新一下那个acme组件才行的了。今早又试了一下,结果仍然报错:


Add SSL Certificate (y/n) y
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.

Press any key to start create virtul host...
hCreate Virtul Host directory......
set permissions of Virtual Host directory......
Create Virtul Host Rewrite file......
Create rewirte file successful,You can add rewrite rule into /usr/local/nginx/conf/rewrite/abc.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......
Reload service php-fpm  done
Add database Sucessfully.
--2019-09-26 08:28:48--  https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net... h50.93.201.152, 2600:3c01::f03c:91ff:fe92:1a06
Connecting to soft.vpser.net|50.93.201.152|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139601 (136K) [application/octet-stream]
Saving to: `latest.tar.gz'

100%[======================================>] 139,601     --.-K/s   in 0.003s

2019-09-26 08:28:49 (50.4 MB/s) - `latest.tar.gz' saved [139601/139601]

[Thu Sep 26 08:28:49 CST 2019] It is recommended to install socat first.
[Thu Sep 26 08:28:49 CST 2019] We use socat for standalone server if you use standalone mode.
[Thu Sep 26 08:28:49 CST 2019] If you don't use standalone mode, just ignore this warning.
[Thu Sep 26 08:28:49 CST 2019] Installing to /usr/local/acme.sh
[Thu Sep 26 08:28:49 CST 2019] Installed to /usr/local/acme.sh/acme.sh
[Thu Sep 26 08:28:49 CST 2019] Installing alias to '/root/.bashrc'
[Thu Sep 26 08:28:49 CST 2019] OK, Close and reopen your terminal to start using acme.sh
[Thu Sep 26 08:28:49 CST 2019] Installing alias to '/root/.cshrc'
[Thu Sep 26 08:28:49 CST 2019] Installing alias to '/root/.tcshrc'
[Thu Sep 26 08:28:49 CST 2019] Installing cron job
no crontab for root
no crontab for root
[Thu Sep 26 08:28:49 CST 2019] Good, bash is found, so change the shebang to use bash as preferred.
[Thu Sep 26 08:28:49 CST 2019] OK
Stopping crond:                                            [  OK  ]
Starting crond:                                            [  OK  ]
Starting create SSL Certificate use Let's Encrypt...
[Thu Sep 26 08:28:50 CST 2019] Create account key ok.
[Thu Sep 26 08:28:50 CST 2019] Registering account

到这一步,就卡定在这里,无法再继续往下面去了。期待军哥给出解决方案~

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-9-26 10:58:30 | 显示全部楼层


发日志看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-9-26 14:24:10 | 显示全部楼层


这个日志我不知在哪里啊,找了半天没找到了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-9-26 16:53:36 | 显示全部楼层



明明小子 发表于 2019-9-26 14:24
这个日志我不知在哪里啊,找了半天没找到了

置顶帖 “问题反馈必读” 上有说明
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-9-26 18:13:53 | 显示全部楼层

综合别人的情况及军哥的帮助。这个问题已经解决了。特写出来,以方便后面遇到相同问题的网友~
先执行
yum install nss
然后再执行
/usr/local/acme.sh/acme.sh --upgrade

最后就可以正常安装这个 Let's Encrypt 证书了。

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-20 15:15 , Processed in 0.026520 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表