My nginx server is giving me an error when setting up an SSL cert, can you let me know what is causing it?
Linode
Linode Staff
I'm using nginx, and I connected an SSL certificate through Forg? When I try to reload or restart nginx, the server gives an error, can you help me understand what is it? The error I see is below.
nginx: [emerg] SSL_CTX_use_PrivateKey("/etc/nginx/ssl/$DOMAIN/801214/server.key") failed (SSL: error:0B080074:X509 certificate
1 Reply
rl0nergan
Linode Staff
Hey!
Taking a look at that error message, it looks like it could be related to having the wrong key setup in your nginx config file.
Can you try running sudo nginx -t
? This will test your config file for any critical errors.
I'd recommend checking out this StackOverflow question, which looks like it could help.
If you're still having trouble after running through that, can you send us over a copy of your nginx config so we can take a better look? By default, you can find that in your /etc/nginx/
directory.