From 7abcb40a351da188ffa4576af28234d2bf0f27a1 Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Mon, 18 Mar 2019 17:26:05 -0400 Subject: [PATCH] ssl cert --- nodejs/express.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nodejs/express.md diff --git a/nodejs/express.md b/nodejs/express.md new file mode 100644 index 0000000..9c98b94 --- /dev/null +++ b/nodejs/express.md @@ -0,0 +1,9 @@ +create self-signed cert + +https://docs.nodejitsu.com/articles/HTTP/servers/how-to-create-a-HTTPS-server/ +``` +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 +``` \ No newline at end of file