From 99eb86d1322186cda57ef2972bd865c2953cc69a Mon Sep 17 00:00:00 2001 From: Jeffrey Burt Date: Wed, 8 Jul 2015 18:21:03 -0400 Subject: [PATCH] updating certificate generation for firefox Firefox is phasing out SHA-1, this command increases the key so firefox will allow you to load the page. --- .../HTTP/servers/how-to-create-a-HTTPS-server/content.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pages/articles/HTTP/servers/how-to-create-a-HTTPS-server/content.md b/pages/articles/HTTP/servers/how-to-create-a-HTTPS-server/content.md index 0d64f3c..45c2c82 100644 --- a/pages/articles/HTTP/servers/how-to-create-a-HTTPS-server/content.md +++ b/pages/articles/HTTP/servers/how-to-create-a-HTTPS-server/content.md @@ -9,10 +9,7 @@ We need to start out with a word about SSL certificates. Speaking generally, th To generate a self-signed certificate, run the following in your shell: - openssl genrsa -out key.pem - openssl req -new -key key.pem -out csr.pem - openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem - rm csr.pem + openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 9999 -nodes This should leave you with two files, `cert.pem` (the certificate) and `key.pem` (the private key). This is all you need for a SSL connection. So now you set up a quick hello world example (the biggest difference between https and [http](/how-do-i-create-a-http-server) is the `options` parameter):