mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-26 02:57:04 +00:00
the SSL private key would be overwritten if ssl_certificate.pem file was deleted; maybe the cause of #98
This commit is contained in:
parent
834a7b9096
commit
6619239280
@ -21,7 +21,7 @@ source /etc/mailinabox.conf # load global vars
|
|||||||
apt_install openssl
|
apt_install openssl
|
||||||
|
|
||||||
mkdir -p $STORAGE_ROOT/ssl
|
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.
|
# Generate a new private key if one doesn't already exist.
|
||||||
# Set the umask so the key file is not world-readable.
|
# Set the umask so the key file is not world-readable.
|
||||||
(umask 077; hide_output \
|
(umask 077; hide_output \
|
||||||
|
Loading…
Reference in New Issue
Block a user