Change permissons to private (600) to certification/key file.
This commit is contained in:
parent
f0531d6fb7
commit
5b5b5ac5cb
@ -250,16 +250,10 @@ else
|
|||||||
echo_skipped
|
echo_skipped
|
||||||
fi
|
fi
|
||||||
|
|
||||||
subj="
|
|
||||||
C=DE
|
|
||||||
ST=Berlin
|
|
||||||
localityName=Berlin
|
|
||||||
O=O.OPEN
|
|
||||||
organizationalUnitName=Network Services
|
|
||||||
commonName=$(hostname -f)
|
|
||||||
emailAddress=argus@oopen.de
|
|
||||||
"
|
|
||||||
|
|
||||||
|
# - Create certificate/key file /etc/ssl/private/pure-ftpd.pem and
|
||||||
|
# - also DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
|
||||||
|
# -
|
||||||
subj="
|
subj="
|
||||||
C=DE
|
C=DE
|
||||||
ST=Berlin
|
ST=Berlin
|
||||||
@ -281,6 +275,16 @@ else
|
|||||||
error "$(cat $tmp_err_msg)"
|
error "$(cat $tmp_err_msg)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echononl " Change permissions (600) on certification file.."
|
||||||
|
chmod 600 /etc/ssl/private/pure-ftpd.pem > $tmp_err_msg 2>&1
|
||||||
|
if [[ $? -eq 0 ]] ; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_err_msg)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echononl " DH parameters file 'pure-ftpd-dhparams.pem'"
|
echononl " DH parameters file 'pure-ftpd-dhparams.pem'"
|
||||||
openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 > $tmp_err_msg 2>&1
|
openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 > $tmp_err_msg 2>&1
|
||||||
if [[ $? -eq 0 ]] ; then
|
if [[ $? -eq 0 ]] ; then
|
||||||
@ -290,6 +294,7 @@ else
|
|||||||
error "$(cat $tmp_err_msg)"
|
error "$(cat $tmp_err_msg)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# - Configure syslogd matching the configuration od amavisd
|
# - Configure syslogd matching the configuration od amavisd
|
||||||
# -
|
# -
|
||||||
echononl " Configure syslogd matching the ftp syslog facility"
|
echononl " Configure syslogd matching the ftp syslog facility"
|
||||||
|
Loading…
Reference in New Issue
Block a user