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:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Nikos Mavrogiannopoulos <nmav>
Open/Closed:  Closed Operating System:  None

Add a New Comment(Rich 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.

(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.


failed certtool user :-)

Daniel Black <danblack>


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

Attach Files:

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)

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

    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.3