Hi,

I am using "req -new..." to generate a privkey.pem file.  I see how I can 
get an encoded version of the private key file using the "rsa -in 
privkey.pem" command.  What I need, however, is a "binary" form (better yet 
a "C" format).  I don't see an option in the rsa command to generate a "C" 
file like there is in the x509 command for generating a C file 
version.  The RSA sslc command has added an option ("-C") to just 
this.  When I looked through the source for "rsa", I don't see an easy way 
to do it - by the time the private key is in binary form, it's at such a 
low-level that I can't easily get access to it.  Can someone suggest a mod 
to  the rsa.c file to do this or the few calls to do this?  I am presently 
resorting to taking the encoded output from rsa and unencoding it and then 
writing it out that way.  Since this involves a separate mini-application 
and hacking for header and trailer removal, I would like to move away from 
this.

I'm a newbie to openssl, so please forgive my ignorance...

Thanks,

Scott

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to