On Mon, Dec 24, 2012 at 12:35 AM, Tayade, Nilesh <nilesh.tay...@netscout.com> wrote: >> -----Original Message----- >> From: owner-openssl-us...@openssl.org [mailto:owner-openssl- >> us...@openssl.org] On Behalf Of Jakob Bohm >> Sent: Friday, December 21, 2012 8:23 PM >> To: openssl-users@openssl.org >> Subject: Re: RSA_private_decrypt function takes longer time. >> >> On 12/21/2012 1:13 PM, Tayade, Nilesh wrote: >> <SNIP> > > Is the conversion supported by openssl utility (e.g. the way we convert .PEM > to PKCS8 format > openssl pkcs8 -topk8 -in <PEM file> -out <PKCS8 format file>)? Does openssl > support PEM to CRT conversion? > I did not get any direct command for this conversion. I believe you also need -inform and -outform. For example:
$ openssl genrsa -out rsa-openssl.pem 3072 $ openssl pkcs8 -nocrypt -in rsa-openssl.pem -inform PEM -topk8 -outform DER -out rsa-openssl.der Folks like Jakob or David likely have a one liner. My notes are kind of old, and this always worked for me. Here's the syntax for X.509 in case you need it: $ openssl genrsa -out rsa-openssl.pem 3072 $ openssl rsa -in rsa-openssl.pem -pubout -outform DER -out rsa-openssl.der Jeff ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org