Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (922)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (3189)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2561)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "rsa -pubout" - Extract RSA Public Key
How to extract the public key from an RSA key file using OpenSSL "rsa" command?
✍: FYIcenter.com
If you want to extract the public key out from an RSA key file (private key an public key),
you can use the OpenSSL "rsa -pubout" command as shown below:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> rsa -in my_rsa.key -pubout -out my_rsa_pub.key writing RSA key OpenSSL> exit C:\Users\fyicenter>type my_rsa_pub.key -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx1SQU1GfsBNB6XU2nqrw IHm1ImXPAcsInQNfhFcpzpku3Kmm0LpDZF1oqkqLNLlh0qVIIlfuMNnVNLAozbUb aJalFUdSGPAVl7jFRZxpDai+d4U2we14MO3kTwy7H3ZeRKzWklL2FCeKo2c20gzF OfxdePwSx9lBT7efFNc5NHRPdPbP/e1Zx1VqB8wAKTgRwafQmFfYUbbk2Cc5ftZ8 yhWc43+2qWzhWm6Ig8knbapPLMPw6bFzwD+ck+6d7zbCG++NrBuXH858iDJfzLgr wic7fW0cRiF+yBpiTmAw6G9HH0CQu8HNBgMfXZIuYjZER4MObmqSGiRTyN9mEFtS WwIDAQAB -----END PUBLIC KEY-----
Options used in this command are:
⇒ OpenSSL "rsa -pubin" - View RSA Public Key
⇐ OpenSSL "rsa -text" - Print RSA Key in Text
2017-02-03, 5689👍, 0💬
Popular Posts:
Certificate Summary: Subject: VeriSign Class 3 Public Primary Certification Authority - G5 Issuer: V...
Certificate Summary: Subject: DigiCert Assured ID Root CA Issuer: DigiCert Assured ID Root CA Expira...
How a Java application validates the certificate received from a server? Is the server's certificate...
What are X509 V3 extensions options in the configuration file for the OpenSSL "req" command? X509 V3...
What can I use OpenSSL "req" command for? What are options supported by the "req" command? OpenSSL "...