Add creation of certificate and DH parameters file.
This commit is contained in:
parent
f25f6aa78d
commit
f0531d6fb7
@ -239,7 +239,7 @@ fi
|
|||||||
|
|
||||||
echononl " Create initial passwd database (pureftpd.pdb)"
|
echononl " Create initial passwd database (pureftpd.pdb)"
|
||||||
if [[ ! -f /etc/pure-ftpd/pureftpd.pdb ]]; then
|
if [[ ! -f /etc/pure-ftpd/pureftpd.pdb ]]; then
|
||||||
touch /etc/pure-ftpd/pureftpd.pdb
|
touch /etc/pure-ftpd/pureftpd.pdb > $tmp_err_msg 2>&1
|
||||||
if [[ $? -eq 0 ]] ; then
|
if [[ $? -eq 0 ]] ; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
@ -250,6 +250,46 @@ 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
|
||||||
|
"
|
||||||
|
|
||||||
|
subj="
|
||||||
|
C=DE
|
||||||
|
ST=Berlin
|
||||||
|
localityName=Berlin
|
||||||
|
O=O.OPEN
|
||||||
|
organizationalUnitName=Network Services
|
||||||
|
commonName=$(hostname -f)
|
||||||
|
emailAddress=argus@oopen.de
|
||||||
|
"
|
||||||
|
echononl " Create certificate 'pure-ftpd.pem'.."
|
||||||
|
openssl req -batch -x509 -nodes -days 7304 -newkey rsa:2048 \
|
||||||
|
-subj "$(echo -n "$subj" | tr "\n" "/")" \
|
||||||
|
-keyout /etc/ssl/private/pure-ftpd.pem \
|
||||||
|
-out /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'"
|
||||||
|
openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048 > $tmp_err_msg 2>&1
|
||||||
|
if [[ $? -eq 0 ]] ; then
|
||||||
|
echo_ok
|
||||||
|
else
|
||||||
|
echo_failed
|
||||||
|
error "$(cat $tmp_err_msg)"
|
||||||
|
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