旧梦一场 发表于 2022-11-10 10:45:27

ssl证书生成失败

你好 :我添加域名的时候用了两个最后生成证书失败了是怎么回事呢


日志如下

Please enter domain(example: www.lnmp.org): admin.fullapi.io api.fullapi.io
Your domain: admin.fullapi.io api.fullapi.io
Enter more domain name(example: lnmp.org *.lnmp.org): admin.fullapi.io api.fullapi.io
domain list: admin.fullapi.io api.fullapi.io
Please enter the directory for the domain: admin.fullapi.io api.fullapi.io
Default directory: /home/wwwroot/admin.fullapi.io api.fullapi.io: /home/wwwroot/fullapi/public
Virtual Host Directory: /home/wwwroot/fullapi/public
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): laravel
You choose rewrite: laravel
Enable PHP Pathinfo? (y/n) y
Enable pathinfo.
Allow access log? (y/n) y
Enter access log filename(Default:admin.fullapi.io api.fullapi.io.log):
You access log filename: admin.fullapi.io api.fullapi.io.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
3: Use BuyPass to create SSL Certificate and Key
4: Use ZeroSSL to create SSL Certificate and Key
Enter 1, 2, 3 or 4: 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/laravel.conf
Test Nginx configure file......
nginx: unknown log format "api.fullapi.io.log" in /usr/local/nginx/conf/vhost/admin.fullapi.io api.fullapi.io.conf:36
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Reload Nginx......
nginx: unknown log format "api.fullapi.io.log" in /usr/local/nginx/conf/vhost/admin.fullapi.io api.fullapi.io.conf:36
Reload service php-fpm warning, no pid file found - php-fpm is not running ?
/usr/local/acme.sh/acme.sh
/usr/bin/lnmp: line 1148: [: /usr/local/nginx/conf/ssl/admin.fullapi.io: binary operator expected
Starting create SSL Certificate use Let's Encrypt...
Unknown parameter : api.fullapi.io
Let's Encrypt SSL Certificate create failed!
================================================
Virtualhost infomation:
Your domain: admin.fullapi.io api.fullapi.io
Home Directory: /home/wwwroot/fullapi/public
Rewrite: laravel
Enable log: yes
Create database: no
Create ftp account: no
Enable SSL: yes
=>Let's Encrypt
================================================


licess 发表于 2022-11-10 14:25:34

删除后重新添加,第一个主域名只能输入一个域名
具体可以查看官网教程 https://lnmp.org/faq/lnmp-vhost-add-howto.html

旧梦一场 发表于 2022-11-11 11:01:09

licess 发表于 2022-11-10 14:25
删除后重新添加,第一个主域名只能输入一个域名
具体可以查看官网教程 https://lnmp.org/faq/lnmp-vhost-ad ...

:handshake
页: [1]
查看完整版本: ssl证书生成失败