remove self signed certs generation

This commit is contained in:
Simon Larsen 2023-07-19 20:29:29 +01:00
parent c9d1c95b38
commit 788e8363ef
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -146,16 +146,6 @@ fi
cd oneuptime
# Generate Self Signed SSL certificate.
CERT=./Certs/ServerCerts/Cert.crt
if test -f "$CERT"; then
echo "SSL Certificate exists. Skipping generating a new one."
else
echo "SSL Certificate not found. Generating a new certificate."
openssl req -new -x509 -nodes -subj "/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com" -out ./Certs/ServerCerts/Cert.crt -keyout ./Certs/ServerCerts/Key.key -days 99999
fi
# Create .env file if it does not exist.
touch config.env