diff options
author | 2006-07-01 19:32:03 +0000 | |
---|---|---|
committer | 2006-07-01 19:32:03 +0000 | |
commit | df2f31fa1505b307a0f609a9f7fc74abb031d662 (patch) | |
tree | 5519e8661da917c9cc2ccdf493e8c7902fece984 /mail-mta/qmail/files | |
parent | qmail-dhparam.sh is not needed, because its functionality is in qmail-genrsac... (diff) | |
download | historical-df2f31fa1505b307a0f609a9f7fc74abb031d662.tar.gz historical-df2f31fa1505b307a0f609a9f7fc74abb031d662.tar.bz2 historical-df2f31fa1505b307a0f609a9f7fc74abb031d662.zip |
qmail-dhparam.sh is not needed, because its functionality is in qmail-genrsacert.sh already.
Package-Manager: portage-2.1.1_pre1-r5
Diffstat (limited to 'mail-mta/qmail/files')
-rwxr-xr-x | mail-mta/qmail/files/qmail-dhparam.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/mail-mta/qmail/files/qmail-dhparam.sh b/mail-mta/qmail/files/qmail-dhparam.sh deleted file mode 100755 index fcad8e69efe6..000000000000 --- a/mail-mta/qmail/files/qmail-dhparam.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/qmail-dhparam.sh,v 1.1 2006/06/15 00:54:51 robbat2 Exp $ -# Robin H. Johnson <robbat2@gentoo.org> - Sept 5, 2005 -# This file generates the static temporary DH parameter keys needed for qmail to encrypt messages -# It should be run from a crontab, once a day is ok on low load machines, but -# if you do lots of mail, once per hour is more reasonable -# if you do NOT create the dh512.pem/dh1024.pem, qmail will generate it on the fly for -# each connection, which can be VERY slow. - -# this is the number of bits in the key -# it should be a power of 2 ideally -# and it must be more than 64! -# set this to 512 only if you are using export grade encryption -# and configure tls*ciphers for qmail -bits="1024 512" - -for b in $bits ; do - if [ -z "${ROOT}" -o "${ROOT}" = "/" ]; then - confdir=/var/qmail/control - else - confdir=${ROOT}/var/qmail/control - fi - pemfile="${confdir}/dh${b}.pem" - tmpfile="${confdir}/dh${b}.pem.tmp" - - # the key should be 0600 - # which is readable by qmaild only! - umaskvalue="0077" - uid="qmaild" - gid="qmail" - - umask ${umaskvalue} ; - # we need to make sure that all of the operations succeed - /usr/bin/openssl dhparam -out ${tmpfile} ${b} 2>/dev/null && \ - /bin/chown ${uid}:${gid} ${tmpfile} && \ - /bin/mv -f ${tmpfile} ${pemfile} -done |