Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (971)
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 (3291)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2635)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "pkey -pubin" - View RSA Public Key
How to view contents of an RSA public key file using OpenSSL "pkey" command?
✍: FYIcenter.com
If you want to view contents of an RSA public key stored in a file,
you can use the OpenSSL "pkey -pubin" command as shown below:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> pkey -pubin -in my_rsa_pub.key -text -noout Public-Key: (1024 bit) Modulus: 00:c0:13:13:00:63:be:36:61:60:40:9e:ff:b7:35: 30:08:f9:c5:11:95:04:2c:b3:32:6d:58:ef:ad:cf: 6c:2b:ca:87:b4:5d:b0:f7:c7:4b:66:e6:d0:72:3a: 37:19:ec:76:e9:ed:09:5a:51:17:f6:5e:69:37:68: dd:36:50:23:90:18:f1:bc:1b:8b:88:70:af:b6:bc: 27:08:76:24:c2:c0:bd:83:ba:39:31:62:0e:6e:e6: 00:2d:81:00:93:ac:d0:6a:26:21:a7:18:31:28:34: 96:b1:02:f4:7f:3e:4a:85:33:c0:f6:be:fa:1a:b7: a8:b1:8a:c8:5a:ff:ad:f5:51 Exponent: 65537 (0x10001)
Options used in this command are:
The output shows that an RSA public key contains 2 components:
modulus, also called n - The modulus part of the public key exponent, also called e - The exponent part of the public key
⇒ OpenSSL "genpkey rsa_keygen_bits:256" - RSA Short Keys
⇐ OpenSSL "pkey -pubout" - Extract RSA Public Key
2018-01-13, 1606👍, 0💬
Popular Posts:
Certificate Summary: Subject: VeriSign Class 3 Public Primary Certification Authority - G4 Issuer: V...
Certificate summary - Owner: *.4shared.com, Domain Control Validated, *.4shared.com Issuer: SERIALNU...
What is ASN.1 BIT STRING field type? How to specify BIT STRING field type in OpenSSL "asn1parse" com...
Certificate Summary: Subject: Class 1 Public Primary Certification Authority - G2, (c) 1998 VeriSign...
How to export the public key out from a certificate using OpenSSL "x509" command? You can export the...