Bug#588029: Re[2]: 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 14:42:30 UTC 2010


On 04.06.2010, 14:48:06 Andreas Metzler <ametzler at downhill.at.eu.org> wrote

AM> 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:
AM>  
>> #!/bin/sh
>> certtool -p --outfile 1.pem
>> echo 'BY\n'|certtool -s --load-privkey 1.pem --outfile 2.crt
AM> [... segfaults] 
AM>  
>> This error is annoying and prevents creation of autoconfiguration
>> scripts, hope this will be fixed soon.
>> Meanwhile, any workaround is also acceptable.

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

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

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

AM> cu andreas 

Thank you for quick and useful hint. This way looks much better
than using echo command and makes this bug not so important (at
least for me).

-- 
Best regards,
 Boris






More information about the Pkg-gnutls-maint mailing list