From 0fefe3a661fb5155f811d5a6412194a566f7de0a Mon Sep 17 00:00:00 2001 From: John Denker Date: Fri, 1 Jan 2016 11:17:17 -0700 Subject: newly created files now added to repo --- update_tmprsadh.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 update_tmprsadh.sh (limited to 'update_tmprsadh.sh') diff --git a/update_tmprsadh.sh b/update_tmprsadh.sh new file mode 100644 index 0000000..beab94f --- /dev/null +++ b/update_tmprsadh.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# Update temporary RSA and DH keys +# Frederik Vermeulen 2004-05-31 GPL + +umask 0077 || exit 0 + +export PATH="$PATH:/usr/local/bin/ssl:/usr/sbin" + +openssl genrsa -out QMAIL/control/rsa2048.new 2048 && +chmod 600 QMAIL/control/rsa2048.new && +chown UGQMAILD QMAIL/control/rsa2048.new && +mv -f QMAIL/control/rsa2048.new QMAIL/control/rsa2048.pem +echo + +openssl dhparam -2 -out QMAIL/control/dh2048.new 2048 && +chmod 600 QMAIL/control/dh2048.new && +chown UGQMAILD QMAIL/control/dh2048.new && +mv -f QMAIL/control/dh2048.new QMAIL/control/dh2048.pem -- cgit v1.2.3