Bug#588029: Segmentation fault when trying to script certtool from gnutls using echo pipe command
Boris L. Zanin
bzanin at tut.by
Sun Jul 4 08:55:33 UTC 2010
Subject: gnutls-bin: Segmentation fault when trying to script certtool using echo pipe command
Package: gnutls-bin
Version: 2.4.2-6+lenny2
Severity: important
*** Please type your report below this line ***
Create and run the following script file:
#!/bin/sh
certtool -p --outfile 1.pem
echo 'BY\n'|certtool -s --load-privkey 1.pem --outfile 2.crt
The output is the following (the text after 5368 is in Russian and means 'Segmentation fault'):
Generating a 2048 bit RSA private key...
Generating a self signed certificate...
Please enter the details of the certificate's distinguished name. Just press enter to ignore a field.
Country name (2 chars): Organization name: Organizational unit name: Locality name: State or province name: Common name: UID: This field should not be used in new certificates.
E-mail: Enter the certificate's serial number in decimal (default: 1278232225): ./1: line 3: 5367 Done echo 'BY\n'
5368 Ошибка сегментирования | certtool -s --load-privkey 1.pem --outfile 2.crt
Outfile (2.crt) is created, but its size is equal to 0.
Have tried same on ubuntu 10.04 with latest gnutls (certtool version 2.8.6) with same effect.
Also tried redirect stdin to file (using <1.txt for certtool -s) with same effect.
Full answers list also does not help.
This error is annoying and prevents creation of autoconfiguration scripts, hope this will be fixed soon.
Meanwhile, any workaround is also acceptable.
Thank you.
Boris L. Zanin
-- System Information:
Debian Release: 5.0.4
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gnutls-bin depends on:
ii libc6 2.7-18lenny1 GNU C Library: Shared libraries
ii libgcrypt11 1.4.1-1 LGPL Crypto library - runtime libr
ii libgnutls26 2.4.2-6+lenny2 the GNU TLS library - runtime libr
ii libgpg-error0 1.4-2 library for common error values an
ii libreadline5 5.2-3.1 GNU readline and history libraries
ii libtasn1-3 1.4-1 Manage ASN.1 structures (runtime)
gnutls-bin recommends no packages.
gnutls-bin suggests no packages.
-- debconf-show failed
More information about the Pkg-gnutls-maint
mailing list