- 积分
- 3
- 威望
-
- 金钱
-
- 注册时间
- 2021-5-20
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
通过lnmp ssl add 申请证书后,显示如下:
-----END CERTIFICATE-----
[Thu May 20 12:14:16 CST 2021] Your cert is in /usr/local/acme.sh/xxxx/xxxx.cer
[Thu May 20 12:14:16 CST 2021] Your cert key is in /usr/local/acme.sh/xxx/xxx.key
[Thu May 20 12:14:16 CST 2021] The intermediate CA cert is in /usr/local/acme.sh/xxx/ca.cer
[Thu May 20 12:14:16 CST 2021] And the full chain certs is there: /usr/local/acme.sh/xxx/fullchain.cer
[Thu May 20 12:14:16 CST 2021] Run reload cmd: /etc/init.d/nginx reload
Reload nginx... nginx: [warn] conflicting server name "xxxx" on 0.0.0.0:80, ignored
done
[Thu May 20 12:14:16 CST 2021] Reload success
Let's Encrypt SSL Certificate create successfully.
Create dhparam.pem...
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
................................................+.........+.........................................................................................................................................................++*++*++*++*
Test Nginx configure file......
nginx: [emerg] cannot load certificate "/usr/local/nginx/conf/ssl/xxx/fullchain.cer": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/nginx/conf/ssl/xxxx/fullchain.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
Reload Nginx......
nginx: [emerg] cannot load certificate "/usr/local/nginx/conf/ssl/xxxx/fullchain.cer": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/nginx/conf/ssl/xxx/fullchain.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)
进行到这一步,ssl证书已经申请成功,并且按照lnmp开发者的逻辑应该已经被复制到/usr/local/nginx/conf/ssl目录下,但是,实际上这一步并没有完成,该目录下并没有ssl证书导致nginx启动失败。
|
|