I'd like to provide an updated version of the patch, bellow :
diff -irbwu ssl-cert-1.0.14/debian/templates ssl-cert-1.0.14.0.olivier.0/debian/templates --- ssl-cert-1.0.14/debian/templates 2006-05-18 14:02:20.000000000 +0200 +++ ssl-cert-1.0.14.0.olivier.0/debian/templates 2007-02-15 11:49:29.000000000 +0100 @@ -46,3 +46,9 @@ Template: make-ssl-cert/title Type: title _Description: Configure an SSL Certificate. + +Template: make-ssl-cert/days +Type: string +_Default: 30 +_Description: Lifetime of Certificate in Days + How many days should this certificate be valid for. diff -irbwu ssl-cert-1.0.14/make-ssl-cert ssl-cert-1.0.14.0.olivier.0/make-ssl-cert --- ssl-cert-1.0.14/make-ssl-cert 2006-05-18 14:02:20.000000000 +0200 +++ ssl-cert-1.0.14.0.olivier.0/make-ssl-cert 2007-02-15 11:49:47.000000000 +0100 @@ -9,7 +9,7 @@ ask_via_debconf() { db_settitle make-ssl-cert/title - templates="countryname statename localityname organisationname ouname hostname email" + templates="countryname statename localityname organisationname ouname hostname email days" for i in $templates; do RET="" @@ -48,6 +48,11 @@ db_get make-ssl-cert/email Email="$RET" db_fset make-ssl-cert/email seen false + + db_get make-ssl-cert/days + Days="$RET" + db_fset make-ssl-cert/days seen false + } make_snakeoil() { @@ -115,7 +120,7 @@ export RANDFILE=/dev/random if [ "$1" != "generate-default-snakeoil" ]; then - openssl req -config $TMPFILE -new -x509 -nodes -out $output -keyout $output > /dev/null 2>&1 + openssl req -config $TMPFILE -new -x509 -days $Days -nodes -out $output -keyout $output > /dev/null 2>&1 chmod 600 $output # hash symlink cd $(dirname $output) -- Olivier BERGER <[EMAIL PROTECTED]> Ingénieur Recherche - Dept INF INT Evry (http://www.int-evry.fr) OpenPGP-Id: 1024D/6B829EEC