1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00
This commit is contained in:
Christopher Hoskin 2021-04-27 11:58:47 +01:00
parent c9b3de934a
commit dc06f1d9c3

View file

@ -51,9 +51,9 @@ function set_up_tls_proxy() {
echo "Generate example self-signed TLS cert"
mkdir -p config/nginx/certs
cp "$TOOLKIT_ROOT/lib/config-seed/nginx.conf" "$TOOLKIT_ROOT/config/nginx/"
openssl req -new -nodes -keyout $PRIVATE_KEY -out $CERT_SIGN_REQ -batch
chmod 600 $PRIVATE_KEY
openssl x509 -req -days 365 -in $CERT_SIGN_REQ -signkey $PRIVATE_KEY -out $CERT
openssl req -new -nodes -keyout "$PRIVATE_KEY" -out "$CERT_SIGN_REQ" -batch
chmod 600 "$PRIVATE_KEY"
openssl x509 -req -days 365 -in "$CERT_SIGN_REQ" -signkey "$PRIVATE_KEY" -out "$CERT"
}
HELP=false