From 318a1a2246a9f521e5a02313dcc1f6d68a0af7ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:16:14 +0200 Subject: Adding debian version 4.96-15+deb12u4. Signed-off-by: Daniel Baumann --- debian/exim-gencert | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100755 debian/exim-gencert (limited to 'debian/exim-gencert') diff --git a/debian/exim-gencert b/debian/exim-gencert new file mode 100755 index 0000000..aeb4780 --- /dev/null +++ b/debian/exim-gencert @@ -0,0 +1,78 @@ +#!/bin/sh -e + +if [ -n "$EX4DEBUG" ]; then + echo "now debugging $0 $@" + set -x +fi + +DIR=/etc/exim4 +CERT=$DIR/exim.crt +KEY=$DIR/exim.key + +# This exim binary was built with GnuTLS which does not support dhparams +# from a file. See /usr/share/doc/exim4-base/README.Debian.gz +#DH=$DIR/exim.dhparam + +if ! command -v openssl > /dev/null ;then + echo "$0: openssl is not installed, exiting" 1>&2 + exit 1 +fi + +# valid for three years +DAYS=1095 + +if [ "$1" != "--force" ] && [ -f $CERT ] && [ -f $KEY ]; then + echo "[*] $CERT and $KEY exists!" + echo " Use \"$0 --force\" to force generation!" + exit 0 +fi + +if [ "$1" = "--force" ]; then + shift +fi + +#SSLEAY=/tmp/exim.ssleay.$$.cnf +SSLEAY="$(mktemp)" + +cat > $SSLEAY <