nginx: [emerg] BIO_new_file(“E:\nginx-1.12.2/conf/cert.pem”) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘E:\nginx-1.12.2/conf/cert.pem’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
解决方法 :
方法1 - 配置证书
方法2
# 将下面内容 全部注释即可,,此方法,仅本低测试过
# HTTPS server
#
# server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
# }