Don't delete DH params if they aren't created

This commit is contained in:
Bob Mottram 2015-06-17 20:04:19 +01:00
parent 2d2a4d122a
commit 369e2a5b2f
1 changed files with 0 additions and 1 deletions

View File

@ -108,7 +108,6 @@ openssl ca -config /etc/ssl/dovecot-ca.cnf -in /etc/ssl/requests/$USERNAME.csr -
# move the cert to the user's home
mkdir /home/$USERNAME/emailcert
shred -zu /etc/ssl/certs/$USERNAME.dhparam
mv /etc/ssl/certs/$USERNAME.cer /home/$USERNAME/emailcert
cp /etc/ssl/certs/dovecot-ca.crt /home/$USERNAME/emailcert
mv /etc/ssl/private/$USERNAME.key /home/$USERNAME/emailcert