Hi,

openssl rsa -in ./PATH/myKey.pem -text -pubout

help:
othello:/three/MEDRACEN# openssl rsa -h
unknown option -h
rsa [options] <infile >outfile
where options are
 -inform arg     input format - one of DER NET PEM
 -outform arg    output format - one of DER NET PEM
 -in arg         input file
 -sgckey         Use IIS SGC key format
 -passin arg     input file pass phrase source
 -out arg        output file
 -passout arg    output file pass phrase source
 -des            encrypt PEM output with cbc des
 -des3           encrypt PEM output with ede cbc des using 168 bit key
 -idea           encrypt PEM output with cbc idea
 -text           print the key in text
 -noout          don't print key out
 -modulus        print the RSA key modulus
 -check          verify key consistency
 -pubin          expect a public key in input file
 -pubout         output a public key
 -engine e       use engine e, possibly a hardware device.

#-----
Averroes

Prasanna wrote:

> hi all
>     I am quite new to Openssl,i am successfully able to use the
> functions RSA_generate_key which creates the Public ,Private keys in Rsa
> structure.I am unable to extract the Public key from the structure.Can
> any one help me.I am may be following the wrong process.I want to create
> a RSA key pair for 2 users (intial trial) and then do the process of the
> Encryption and Decryption in a input data,using these Assymetric
> routines.
>
> I would highly gratefull if i can get an example.
>
> Thanxs and regards
> Prasanna

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

Reply via email to