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

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
Nice tutorial, it helped! Might worth mentioning that if you have ufw installed you need to allow 443.
Hello. Thanks for the tutorial, it helped me a lot to understand a few more options while creating a key and certificate files. That’s a pity I haven’t read it before, specially because of the “-nodes” command piece which instructs OpenSSL to skip the option to secure certificates with a passphrase.
Actually I’ve just set up my nginx server with a CA signed certificate issued by Namecheap, but I haven’t paid attention nor even realized about the passphrase thing. My server is fine, it is properly configured and everything runs well under https, but every time I reload or restart nginx for any reason it just asks for my passphrase.
Is there a way I can remove the passphrase requirement once I’ve already got my server completely set up with the SSL certificate? or Would I need to create a new unprotect key/certificate, then send it again to the CA and ask for them to re-issue the final SSL certificates?
Sorry if my questions are a bit confused or not clear enough, but after all the time I spent to make it work I’m now facing the passphrase issue, and that’s not so easy for a non sys-admin person to manage all these steps without making a few mistakes or forget something important along the way.
Thanks in advance.
@Adriano: You can remove the passphrase from a key by running the following command: <pre>openssl rsa -in key -out key</pre> Make sure you take a backup first in case anything goes wrong (a <code>cp key key.bak</code> should suffice). You don’t need to reissue the certificate or resend it to the CA. Let me know how it goes! :)
Hey guys,
This is a great tutorial from Justin, thanks a lot for it!
I was wondering, how about installing a trusted certificate, say, Comodo PositiveSSL? How will that SSL certificate installation work out?
Thanks!
Assuming you’ve already generated a key to create the CSR which you submitted to Comodo PositiveSSL, you’ll need to create a certificate bundle to use with Nginx. You should have received three file via email. Move them to the server and combine them with:
cat domain_com.crt PositiveSSLCA2.crt AddTrustExternalCARoot.crt > domain.com.pem
Then, the rest of your Nginx configuration will look like the article above. Just remember to use the file you just generated and the key you created when making the CSR.
ssl_certificate /path/to/your/domain.com.pem;
ssl_certificate_key /path/to/your.key;
Hello, Nice explanation !! I have a situation where I moved from apache to nginx. I have positive comodo certificate bundle and key which I generated on old server. How can I port to nginx server. P.S. Machine is also new in this case.
I need to generate new key ? and old certificate is fine ?
Thanks, Amit
@akroushan: The same key/certificate should work fine on both Apache and nginx.
after changing the nginx conf file, I can’t restart nginx.
running nginx -t shows: the “ssl” parameter requires ngx_http_ssl_module
This is running nginx version 1.6. Any idea?
Hi, do we also need to include this in the server block section?
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
The tutorial comment for Ubuntu 12.04 version says this can prevent Beast Attack on SSL. Or does Ubuntu 14.04 already take care of that by default thus no need to include those lines in?