OpenSSL "rsa" Command Options

Q

What can I use OpenSSL "rsa" command for? What are options supported by the "rsa" command?

✍: FYIcenter.com

A

OpenSSL "rsa" command is a utility to view RSA private keys and public keys.

Here are options supported by the "rsa" command:

C:\Users\fyicenter>\local\openssl\openssl.exe

OpenSSL> rsa -help
unknown option -help
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
 -seed           encrypt PEM output with cbc seed
 -aes128, -aes192, -aes256
                 encrypt PEM output with cbc aes
 -camellia128, -camellia192, -camellia256
                 encrypt PEM output with cbc camellia
 -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.
error in rsa

 

OpenSSL "rsa -text" - Print RSA Key in Text

OpenSSL "genrsa" - Generate RSA Key Pair

OpenSSL "genrsa" and "rsa" Commands

⇑⇑ OpenSSL Tutorials

2017-02-24, 5731🔥, 0💬