My nginx server is giving me an error when setting up an SSL cert, can you let me know what is causing it?

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

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct