add dh param generation

This commit is contained in:
Sebastian Hugentobler 2018-02-16 10:02:47 +01:00
parent ef2dab732c
commit da2b76bba4

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv sh
if [ ! -f /etc/ssl/mail/dh.pem ]; then
openssl dhparam -out /etc/ssl/mail/dh.pem ${SSL_DH_LENGTH:-2048}
fi