helpGnuTLS - Support: sr #108206, certtool --generate-request error...

 
 

sr #108206: certtool --generate-request error handling

Submitted by:  Daniel Black <danblack>
Submitted on:  Thu 13 Dec 2012 06:43:36 AM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Nikos Mavrogiannopoulos <nmav>
Open/Closed: ClosedOperating System: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 15 Dec 2012 10:59:26 PM UTC, comment #2:

thanks for the fix. Much appreciated.

https://gitorious.org/gnutls/gnutls/commit/cd390b7632c032adeead5926ccf484d204203133/diffs/e1b658a4ef4762b66c23f6fc1967f29c67e60257

Daniel
(to become less of a failed certtool user)

Daniel Black <danblack>
Sat 15 Dec 2012 10:15:37 AM UTC, comment #1:

Thanks for the suggestion. I've committed a fix which will be included in the next release.

Nikos Mavrogiannopoulos <nmav>
Project AdministratorIn charge of this item.
Thu 13 Dec 2012 06:43:36 AM UTC, original submission:

I did the following two commands recently to get a certificate request of a CA.

$ certtool --bits 2432 --generate-privkey --outfile key.pem

    • Note: Please use the --sec-param instead of --bits

Generating a 2432 bit RSA private key...

$ certtool --generate-request --infile key.pem --outfile request.pem
Generating a PKCS #10 certificate request...
Generating a 2432 bit RSA private key...
....

To a not-so-often user of certtool the mistake is --infile should of been --load-privkey. While if I'd been astute and noticed the second generation, or read the manual this would of been obvious. As a result I got the CA to issue a certificate without actually having the private key anywhere.

As --infile isn't valid with --generate-request can some warning show up when a generating a certificate request without the private key being saved anywhere?

I'm sure there's other invalid and dangerous combinations here too.

cheers.

Daniel
failed certtool user :-)

Daniel Black <danblack>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 16 Feb 2013 11:49:35 AM UTCnmavOpen/ClosedOpen=>Closed
    Sat 15 Dec 2012 10:15:37 AM UTCnmavStatusNone=>Done
      Assigned toNone=>nmav

    Back to the top


    Powered by Savane 3.1-cleanup