Prevented dhparams regenerating if they already exist
This commit is contained in:
parent
591e35c91a
commit
e130fc041e
2
run.sh
2
run.sh
@ -71,7 +71,7 @@ else
|
||||
exit 8
|
||||
fi
|
||||
|
||||
if [[ $GENERATE_DHPARAM = true ]]
|
||||
if [[ $GENERATE_DHPARAM = true ]] && [[ ! -s /config/letsencrypt/keys/ssl-dhparams.pem ]]
|
||||
then
|
||||
echo "Generating Diffie-Hellman keys, saved to /config/letsencrypt/keys"
|
||||
openssl dhparam -out /config/letsencrypt/keys/ssl-dhparams.pem 4096
|
||||
|
Loading…
x
Reference in New Issue
Block a user