::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?