nginx: [emerg] cannot load certificate "/usr/local/nginx/ssl.key"
时间: 2023-08-25 18:11:44 浏览: 295
Nginx配置SSL证书出错解决方案
根据引用和引用的信息,nginx报错"cannot load certificate"是因为它无法找到指定的证书文件。根据引用中的配置,将证书部署在/etc/ssl/certs目录下即可。所以,证书应该放置在"/etc/ssl/certs"目录下,而不是"/usr/local/nginx/ssl.key"文件中。请将证书文件移动到正确的位置,然后重新启动nginx服务。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [cannot load certificate “/usr/local/nginx/ssl/*.pem“: BIO_new_file() failed](https://blog.csdn.net/weixin_49807584/article/details/128160629)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [Nginx配置证书报错nginx: [emerg] cannot load certificate “../software/nginx/zhifu.pem“: BIO_new_...](https://blog.csdn.net/weixin_52998454/article/details/129087837)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文