CC-ing the bug-report in case others would have the same problem... Le mercredi 08 août 2007 à 14:46 +0200, SEE-BOX Reby a écrit : > Dear Mr. Olivier BERGER, > > very thanks for you job, > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293821).. > > but your patch for ssl-cert not working with original script, > in my Debian Etch, I have 1.0.14 ssl-cert > > web2:/etc/apache2/ssl# dpkg -l > ... > ii ssl-cert 1.0.14 Simple debconf wrapper for openssl > ... > > is possible send to my the script after patch? > > Very thanks, > > Ugo Rebaudo. >
The patch applies fine on the file make-ssl-cert... I copy-pasted the patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293821#22 into a make-ssl-cert.patch file, and did : patch < make-ssl-cert.patch can't find file to patch at input line 4 Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |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 -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file make-ssl-cert Hunk #1 succeeded at 9 with fuzz 1. Typing a cariage return when asking for the first file to patch help skip it, then the file gets patched... although with a bit of fuzziness for the patch command. Anyway, it's pretty easy to modify the lines manually yourself... there are just a few lines to modify... Anyway, attaching the patch file only for the make-ssl-cert command and not the whole Debian package. Hope this helps, -- Olivier BERGER <[EMAIL PROTECTED]> (ATTENTION : new address) Ingénieur Recherche - Dept INF GET/INT at Evry (http://www.int-edu.eu/) OpenPGP-Id: 1024D/6B829EEC
--- /usr/sbin/make-ssl-cert 2007-02-03 07:52:01.000000000 +0100 +++ make-ssl-cert 2007-08-14 17:51:53.000000000 +0200 @@ -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)