Bug#588029: Segmentation fault when trying to script certtool from gnutls using echo pipe command

Andreas Metzler ametzler at downhill.at.eu.org
Sun Jul 4 11:48:06 UTC 2010


On 2010-07-04 "Boris L. Zanin" <bzanin at tut.by> wrote:
> 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
[... segfaults] 
 
> This error is annoying and prevents creation of autoconfiguration
> scripts, hope this will be fixed soon.
> Meanwhile, any workaround is also acceptable.

Workaround is easy, the proper way to script certtol is this one:

Manual page certtool(1):
| --template
|       Use a template file to read input. See the doc/certtool.cfg in
|       the distribution, for an example.

(The respective file is installed as
/usr/share/doc/gnutls-bin/examples/certtool.cfg on Debian.)

cu andreas 





More information about the Pkg-gnutls-maint mailing list