VPS侦探论坛

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

军哥。ssl nginx的出现问题

[复制链接]
发表于 2018-2-6 16:05:59 | 显示全部楼层 |阅读模式

nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.*.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.*.com/fullchain.pem','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] BIO_new_file("/etc/letsencrypt/live/www.*.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.*.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)


ssl原本做了。到期了。我直接执行/bin/certbot renew --disable-hook-validation --renew-hook "/etc/init.d/nginx reload"这样不行。出现错误,我就删除live和arrive底下的证书。和删除了vhost里面的ssl信息。根目录下的.well-know。都删除了。重新做。这样是可以的。我试过好多次了。这次却出现这个问题。求助。!谢谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-2-6 18:25:17 | 显示全部楼层


上面的错误是提示ssl证书和key文件不存在
续期时没有具体错误信息没法说是什么原因
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-2-7 14:30:35 | 显示全部楼层

ssl错误内容


IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/www.*.com-0002/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/www.*.com-0002/privkey.pem
   Your cert will expire on 2018-05-07. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
- If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

Let's encrypt crontab renew rule is exist.
Let's Encrypt SSL Certificate create successfully.
Test Nginx configure file......
nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/www.*.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.*.com/fullchain.pem','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] BIO_new_file("/etc/letsencrypt/live/www.*.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/www.*.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-2-7 14:36:40 | 显示全部楼层



重命名一下.把/etc/letsencrypt/live/www.*.com-0002改成 /etc/letsencrypt/live/www.*.com/ 就可以吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2018-2-7 16:45:20 | 显示全部楼层

回复 4# 的帖子


不能,你生成多次就会是带数字的
直接删除 /etc/letsencrypt/archive/域名 及带数字的目录 和 /etc/letsencrypt/renewal/域名.conf 都删掉
/etc/letsencyrpt/live/域名 及带数字的目录 删掉

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

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

本版积分规则

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

GMT+8, 2024-9-24 15:18 , Processed in 0.026847 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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