From 9232930ac7ebb856412486d9a6806a1d90267d57 Mon Sep 17 00:00:00 2001 From: zkldi Date: Wed, 27 Oct 2021 20:59:22 +0100 Subject: [PATCH] Add make-selfsigned-https script --- server/make-selfsigned-https.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 server/make-selfsigned-https.sh diff --git a/server/make-selfsigned-https.sh b/server/make-selfsigned-https.sh new file mode 100755 index 000000000..e7633657c --- /dev/null +++ b/server/make-selfsigned-https.sh @@ -0,0 +1,10 @@ +#! /bin/bash + +# This command is for dev servers only! You should use this to +# create a self-signed HTTPS certificate for local dev. +# That is it. This is not secure. +mkdir -p cert + +yes "" | openssl req -x509 -newkey rsa:4096 -keyout ./cert/key.pem -out ./cert/cert.pem -sha256 -days 365 --nodes &> /dev/null + +echo "Created HTTPS Certificates!" \ No newline at end of file