相关推荐recommended
Nginx配置证书报错nginx: [emerg] cannot load certificate “..softwarenginxzhifu.pem“: BIO
作者:mmseoamin日期:2024-02-02

本人在Nginx配置完证书  重启时报错:不能加载证书:

Nginx配置证书报错nginx: [emerg] cannot load certificate “..softwarenginxzhifu.pem“: BIO,第1张

nginx: [emerg] cannot load certificate "../software/nginx/zhifu.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('../software/nginx/zhifu.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

我个人遇到的问题是:

我把我实际证书放的位置是 

../software/nginx/cert/zhifu.pem   

../software/nginx/cert/zhifu.key

Nginx配置证书报错nginx: [emerg] cannot load certificate “..softwarenginxzhifu.pem“: BIO,第2张

但我配置时却填的是

../software/nginx/zhifu.pem  

../software/nginx/zhifu.key 

就是因为实际配置证书路径时少了个cert文件夹 哎 网上找了老半天都没答案 发现原来是自己填的路径错了。希望小伙伴不要犯我的错呀 :)