From 6619239280710878dd6aac40aadefbc0f20db4e9 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Mon, 28 Jul 2014 15:38:17 -0400 Subject: [PATCH] the SSL private key would be overwritten if ssl_certificate.pem file was deleted; maybe the cause of #98 --- setup/ssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/ssl.sh b/setup/ssl.sh index e0966207..ec1cdb50 100755 --- a/setup/ssl.sh +++ b/setup/ssl.sh @@ -21,7 +21,7 @@ source /etc/mailinabox.conf # load global vars apt_install openssl mkdir -p $STORAGE_ROOT/ssl -if [ ! -f $STORAGE_ROOT/ssl/ssl_certificate.pem ]; then +if [ ! -f $STORAGE_ROOT/ssl/ssl_private_key.pem ]; then # Generate a new private key if one doesn't already exist. # Set the umask so the key file is not world-readable. (umask 077; hide_output \