Files
zkldi_Tachi/server/make-selfsigned-https.sh
T
2022-04-13 14:12:57 +01:00

10 lines
344 B
Bash
Executable File

#! /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!"