proftpd-cn (2:1.3.0-3) stable; urgency=low
* popravljen debconf problem sa interaktivnom skriptom (openssl)
+ * slozeno neinteraktivno generiranje SSL certifikata
-- Dinko Korunic <kreator@carnet.hr> Wed, 31 Oct 2007 15:14:01 +0100
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 <<EOF
+.
+.
+.
+FTP server
+$hostname.$domainname
+$fqdn
+root@$mailname
+EOF
+)
echo "CN: Self-signed SSL certificate generated in $SSL_CERT."
echo "CN: Please note that the certificate will expire in one year."
fi