When nginx configures the SSL certificate, it starts with an error. The certificate file cannot be found. The error log is as follows:
2021/11/24 15:52:19 [emerg] 4124#3800: cannot load certificate "E:
ginx-1.21.4\ssl\6667030_xxxx.pem": BIO_new_file() failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen('E:
ginx-1.21.4\ssl\6667030_xxxxxx.pem','r') error:2006D002:BIO routines:BIO_new_file:system lib)
2021/11/24 15:53:33 [emerg] 1832#4972: cannot load certificate "E:
ginx-1.21.4\ssl\6667030_xxxx.pem": BIO_new_file() failed (SSL: error:0200107B:system library:fopen:Unknown error:fopen('E:
ginx-1.21.4\ssl\6667030_xxxx.pem','r') error:2006D002:BIO routines:BIO_new_file:system lib)
Solution:
Change the address path of disk e to “\\”, which was written as “ssl_certificate” E: “\nginx-1.21.4\SSL\6667030_xxxx.PEM”, it keeps reporting errors
server {
listen 443 ssl;
server_name xxxx;
ssl_certificate E:\\nginx-1.21.4\ssl\6667030_xxxx.pem;
ssl_certificate_key E:\\nginx-1.21.4\ssl\6667030_xxxx.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /api/ {
client_max_body_size 1000m;
alias E:\dev\Server\api/;
index index.html index.htm;
}
}
Read More:
- How to Solve Fopen bus error
- [Solved] svn Error: E230001: Server SSL certificate verification failed: certificate issued
- SVN Error:svn: E230001: Server SSL certificate verification failed: certificate issued
- git submodule add Error: SSL certificate problem unable to get local issuer certificate
- [Solved] Postman Error: SSL Error: Self signed certificate Disable SSL Verification
- Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued
- [Solved] Leetcode Error: AddressSanitizer: SEGV on unknown address 0x55eb765425b8 (pc 0x55eb76542b86 bp 0x7ffd1bd2
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- [Solved] dyld: Library not loaded: /System/Library/Frameworks/Network.framework/Network
- [Solved] Error response from daemon: Get “*“: x509: certificate signed by unknown authority
- result = e.symbols[symb] KeyError: b‘system‘ [How to Solve]
- Unknown SSL protocol error in connection to xxx:443 [How to Solve]
- [Solved] Docker Start nginx error: driver failed programming external connectivity on endpoint nginx
- Failed to remove multipath map 320b508ca45022b80 [How to Solve]
- [Solved] Synergy Error: ERROR: ssl certificate doesn‘t exist
- Docker Pull Error: certificate signed by unknown authority
- OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failur
- How to Solve Nginx 413 Error (request entity too large)
- [ERROR FileExisting-conntrack]: conntrack not found in system path