mainGnuTLS - Support: sr #107420, certtool cannot handle input...

 
 

sr #107420: certtool cannot handle input redirection

Submitter:  Andreas Metzler <ametzler>
Submitted:  Sun 04 Jul 2010 12:00:34 PM UTC
   
 
Category:  None Priority:  4
Severity:  3 - Normal Status:  Ready For Test
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Jul 2010 06:34:18 AM UTC, comment #1: 

Hi,
 I've fixed this in git and it doesn't crash, but leads to an infinite asking situation. Redirecting from /dev/null does not fill all required values.

Nikos Mavrogiannopoulos <nmav>
Group administrator
Sun 04 Jul 2010 12:00:34 PM UTC, original submission:  

Hello,

this is http://bugs.debian.org/588029

certool segfaults on input redirection, here is a simple testcase:
certtool -p --outfile 1.pem
certtool -s --load-privkey 1.pem --outfile 2.crt < /dev/null
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: 1278244683): Segmentation fault

Using a file that contains all the expected input strings instead of /dev/null does not improve the situation.

I am aware that --template is the correct way to do this, however certtool should not/must not segfault. This is present both in 2.8.6 and 2.10.0.

Andreas Metzler <ametzler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  • -email is unavailable- added by ametzler (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-29 nmav Open/ClosedOpen Closed
    2010-07-05 nmav Priority5 - Normal 4
    2010-07-05 nmav StatusNone Ready For Test
        Assigned toNone nmav

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code