From: Dinko Korunic Date: Wed, 31 Oct 2007 17:21:40 +0000 (+0000) Subject: r3: - noninteractive ssl cert create X-Git-Tag: v1.3.3~4 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=refs%2Fheads%2Fetch;p=proftpd-cn.git r3: - noninteractive ssl cert create --- diff --git a/debian/changelog b/debian/changelog index 6ee69a6..59e1d93 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ proftpd-cn (2:1.3.0-3) stable; urgency=low * popravljen debconf problem sa interaktivnom skriptom (openssl) + * slozeno neinteraktivno generiranje SSL certifikata -- Dinko Korunic Wed, 31 Oct 2007 15:14:01 +0100 diff --git a/debian/postinst b/debian/postinst index 988e081..955e496 100755 --- a/debian/postinst +++ b/debian/postinst @@ -138,7 +138,19 @@ make_ssl_cert() if [ ! -f $SSL_CERT ] ; then cd $(dirname $SSL_CERT) echo "CN: Generating SSL certificate ... " - openssl req -new -x509 -days 365 -nodes -out $(basename $SSL_CERT) -keyout $(basename $SSL_KEY) + HOSTNAME=`hostname -s` + FQDN=`hostname -f` + MAILNAME=`cat /etc/mailname 2> /dev/null || hostname -f` + (openssl req -new -x509 -days 365 -nodes -out $(basename $SSL_CERT) -keyout $(basename $SSL_KEY) >/dev/null 2>&1 <