Tcl Library Source Code

View Ticket
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Ticket UUID: 3440058
Title: (pki) Key related stuff
Type: RFE Version: None
Submitter: Created on: 2011-11-18 21:51:18
Subsystem: pki Assigned To: rkeene
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-01-08 00:07:20
Resolution: Closed By: rkeene
    Closed on: 2013-01-07 05:19:02
Description:
::pki::rsa::generate and ::pki::pkcs::parse_key procs only handles the n,e,d vaules of a key, and calculates the size.  On file attached, there is the full info of the rsa key set.

There is a new proc to converts the tcl stored key to pem, also with DES password encryption option, which is fully recognized by openssl.  (Not sure if it is named properly)

However, there is a little bug i can not find yet after generating a rsa key, which sometimes makes crash the ::pki::pkcs::create_csr process, but it can be fix by generating a key then convert to pem then parse it back.

btw, i get an "integer value too large to represent" error when generating a 4096bit length key on ::pki::_isprime, should i post it as a bug?

Regards,

-=Raul=-
User Comments: andreas_kupries added on 2013-01-08 00:07:20:
Does this mean that the change/code has been committed to the Tcllib Fossil Repository ?
If not, then this is not truly done, and should not be closed.
I am willing to do this, if necessary.

rkeene added on 2013-01-07 12:19:02:
allow_comments - 1

Done !

rkeene added on 2013-01-07 12:18:41:
pki 0.5 ( http://www.rkeene.org/devel/pki/pki-0.5.tar.gz ) now supports emitting password-protected private keys -- feature request complete.

rkeene added on 2013-01-06 02:40:06:
http://rkeene.org/devel/pki/pki-0.4.tar.gz

rkeene added on 2013-01-06 02:39:50:
This functionality is a part of pki 0.4 (not yet in tcllib).  The only part that is not there yet is encrypting the output.

added on 2011-11-19 08:26:47:
File Deleted - 428803:

added on 2011-11-19 08:26:38:
File Added - 428822: key-related-1.14rc0.tcl

added on 2011-11-19 04:51:19:
File Added - 428803: key-related.tcl

Attachments: