Categories:
DH Keys (39)
DSA Keys (72)
EC Keys (333)
Firefox (32)
General (13)
Google Chrome (25)
Intermediate CA (152)
Java VM (20)
JDK Keytool (25)
Microsoft CertUtil (26)
Mozilla CertUtil (18)
OpenSSL (237)
Other (17)
Portecle (38)
Publishers (1862)
Revoked Certificates (30)
Root CA (87)
RSA Keys (2173)
Tools (47)
Tutorial (7)
What Is (21)
Windows (129)
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, 1077👍, 0💬
Popular Posts:
Certificate summary - Owner: GlobalSign Domain Validation CA - G2, GlobalSign nv-sa, BE Issuer: Glob...
Certificate summary - Owner: DigiCert High Assurance EV Root CA, www.digicert.com, DigiCert Inc, US ...
Where to find tutorials on using certificate manager command line tool "certmgr.exe" on Windows? Her...
Certificate summary - Owner: *.chaturbate.com, IT, Multi Media LLC, L=Lake Forest, ST=California, US...
Certificate Summary: Subject: www.blackhatworld.com Issuer: Thawte DV SSL CA Expiration: 2014-07-23 ...