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

 
 

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

Submitter:  Daniel Black <danblack>
Submitted:  Thu 13 Dec 2012 06:43:36 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  nmav
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 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 danblack (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-02-16 nmav Open/ClosedOpen Closed
    2012-12-15 nmav StatusNone Done
        Assigned toNone nmav

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code