Difference between revisions of "Nginx"
From Organic Design wiki
(→See also: Nginx best practices) |
(→See also: Configuring Nginx HTTPS servers) |
||
Line 40: | Line 40: | ||
*[http://www.westphahl.net/blog/2012/01/03/setting-up-https-with-nginx-and-startssl/ StartSSL & Nginx] | *[http://www.westphahl.net/blog/2012/01/03/setting-up-https-with-nginx-and-startssl/ StartSSL & Nginx] | ||
*[http://serverfault.com/questions/18994/nginx-best-practices Nginx best practices] | *[http://serverfault.com/questions/18994/nginx-best-practices Nginx best practices] | ||
+ | *[http://nginx.org/en/docs/http/configuring_https_servers.html Configuring Nginx HTTPS servers] | ||
[[Category:Software]] | [[Category:Software]] |
Revision as of 16:43, 31 August 2012
Self-signed SSL certificates
Nginx doesn't use the basic .pem files that can be used by Apache for self-signed certificates. We need to go through the following procedure to turn the pem into key and crt files.
First we need to create a private key. Note that this process will require a pass-phrase for the key - don't worry, we'll remove it later to make things easier,
Now we need to create a CSR (Certificate Signing Request):
Now we need to remove the pass-phrase otherwise it'll prevent the web-server from restarting without it being entered (you'll need to enter the pass-phrase to remove it though),
Now we can generate the actual certificate:
The relevant server section can now be updated in the nginx configuration,