查看: 571|回复: 1

Let's Encrypt泛域名生成失败

发表于 2019-8-7 13:42:09 | 显示全部楼层 |阅读模式

[root@instance-bxhnmxeb ~]# lnmp vhost add
|    Manager for LNMP, Written by Licess    |
|              https://lnmp.org             |
Please enter domain(example: www.lnmp.org): compucen.com
Your domain: compucen.com
Enter more domain name(example: lnmp.org *.lnmp.org): *.compucen.com
domain list: *.compucen.com
Please enter the directory for the domain: compucen.com
Default directory: /home/wwwroot/compucen.com: /home/wwwroot/life
Virtual Host Directory: /home/wwwroot/life
Allow Rewrite rule? (y/n) y
Please enter the rewrite of programme,
wordpress,discuzx,typecho,thinkphp,laravel,codeigniter,yii2 rewrite was exist.
(Default rewrite: other): wordpress
You choose rewrite: wordpress
Enable PHP Pathinfo? (y/n) y
Enable pathinfo.
Allow access log? (y/n) y
Enter access log filename(Default:compucen.com.log): life
You access log filename: life.log
Create database and MySQL user with same name (y/n) n
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...

Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/rewrite/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......
Reload service php-fpm  done
--2019-08-07 13:34:31--  https://soft.vpser.net/lib/acme.sh/latest.tar.gz
Resolving soft.vpser.net (soft.vpser.net)...
Connecting to soft.vpser.net (soft.vpser.net)||:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2019-08-07 13:34:31--
Connecting to connected.
HTTP request sent, awaiting response... 200 OK
Length: 139601 (136K) [application/octet-stream]
Saving to: ‘latest.tar.gz’

100%[======================================>] 139,601      760KB/s   in 0.2s

2019-08-07 13:34:31 (760 KB/s) - ‘latest.tar.gz’ saved [139601/139601]

[Wed Aug  7 13:34:31 CST 2019] It is recommended to install socat first.
[Wed Aug  7 13:34:31 CST 2019] We use socat for standalone server if you use sta                                                                                                                                                             ndalone mode.
[Wed Aug  7 13:34:31 CST 2019] If you don't use standalone mode, just ignore thi                                                                                                                                                             s warning.
[Wed Aug  7 13:34:31 CST 2019] Installing to /usr/local/acme.sh
[Wed Aug  7 13:34:31 CST 2019] Installed to /usr/local/acme.sh/acme.sh
[Wed Aug  7 13:34:31 CST 2019] Installing alias to '/root/.bashrc'
[Wed Aug  7 13:34:31 CST 2019] OK, Close and reopen your terminal to start using                                                                                                                                                              acme.sh
[Wed Aug  7 13:34:31 CST 2019] Installing alias to '/root/.cshrc'
[Wed Aug  7 13:34:31 CST 2019] Installing alias to '/root/.tcshrc'
[Wed Aug  7 13:34:31 CST 2019] Installing cron job
no crontab for root
no crontab for root
[Wed Aug  7 13:34:31 CST 2019] Good, bash is found, so change the shebang to use                                                                                                                                                              bash as preferred.
[Wed Aug  7 13:34:32 CST 2019] OK
Redirecting to /bin/systemctl restart crond.service
Note: Forwarding request to 'systemctl enable crond.service'.
Starting create SSL Certificate use Let's Encrypt...
[Wed Aug  7 13:34:36 CST 2019] Create account key ok.
[Wed Aug  7 13:34:36 CST 2019] Registering account
[Wed Aug  7 13:34:41 CST 2019] Registered
[Wed Aug  7 13:34:41 CST 2019] ACCOUNT_THUMBPRINT='Zp2PiJpOYjcWKRLtSLE0_ASChGlQ'
[Wed Aug  7 13:34:41 CST 2019] Creating domain key
[Wed Aug  7 13:34:42 CST 2019] The domain key is here: /usr/local/nginx/conf/ssl                                                                                                                                                             /compucen.com/compucen.com.key
[Wed Aug  7 13:34:42 CST 2019] Multi domain='DNS:compucen.com,DNS:*.compucen.com                                                                                                                                                             '
[Wed Aug  7 13:34:42 CST 2019] Getting domain auth token for each domain
[Wed Aug  7 13:34:53 CST 2019] Getting webroot for domain='compucen.com'
[Wed Aug  7 13:34:53 CST 2019] Getting webroot for domain='*.compucen.com'
[Wed Aug  7 13:34:53 CST 2019] Error, can not get domain token entry *.compucen.com
[Wed Aug  7 13:34:53 CST 2019] The supported validation types are: dns-01 , but you specified: http-01
[Wed Aug  7 13:34:53 CST 2019] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!
Virtualhost infomation:
Your domain: compucen.com
Home Directory: /home/wwwroot/life
Rewrite: wordpress
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
[root@instance-bxhnmxeb ~]# lnmp vhost del
|    Manager for LNMP, Written by Licess    |
|              https://lnmp.org             |
Current Virtualhost:
Nginx Virtualhost list:
Please enter domain you want to delete: compucen.com
Domain: compucen.com has been deleted.
Website files will not be deleted for security reasons.
You need to manually delete the website files.
[root@instance-bxhnmxeb ~]#

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

泛域名ssl只能使用dns方式进行认证,具体可以 https://www.vpser.nethttps://lnmp.org 上搜索:泛域名ssl
您需要登录后才可以回帖 登录 | 注册


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

GMT+8, 2020-6-4 12:45 , Processed in 0.078908 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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