本人在nginx配置完证书 重启时报错:不能加载证书:
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
但我配置时却填的是
../software/nginx/zhifu.pem
../software/nginx/zhifu.key
就是因为实际配置证书路径时少了个cert文件夹 哎 网上找了老半天都没答案 发现原来是自己填的路径错了。希望小伙伴不要犯我的错呀 :)