Report this

What is the reason for this report?

Configure ssl certificate for nginx

Posted on October 21, 2014

I have installed nginx 1.6 on my droplet and I’m trying to configure an ssl certificate to use https connection. I created the certificate with openssl as described in this tutorial:

When i access the https url from my browser I have no response. I’m sure port 443 is opened because of this:

netstat -tulpn | grep 443
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      8603/nginx.conf

Moreover if I try to wget --no-check-certificate https://<server_url> I correctly get the index.html page

I suppose the problem is that the certificate is untrusted but the only error in my browser is ERR_CONNECTION_RESET

What am I doing wrong? Thanks in advance.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Solved

renaming certificate from .crt to .pem solved the problem

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.