Categories:
DH Keys (39)
DSA Keys (72)
EC Keys (336)
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 "genpkey rsa_keygen_bits:256" - RSA Short Keys
How to generate a new RSA key pair with a shorter key size using OpenSSL "genpkey" command?
✍: FYIcenter.com
If you need a new RSA key pair with a shorter key size for testing purpose,
you can use the OpenSSL "genpkey -pkeyopt rsa_keygen_bits:nnn" command.
The "-pkeyopt rsa_keygen_bits:nnn" option specifies the size of the RSA key to be
generated in number of bits. The default is 1024 bits.
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> genpkey -algorithm rsa -out rsa_test.key -pkeyopt rsa_keygen_bits:256 ......+++++++++++++++++++++++++++ ....+++++++++++++++++++++++++++ OpenSSL> pkey -in rsa_test.key -text -noout Private-Key: (256 bit) modulus: 00:c6:bf:35:af:5e:96:42:5e:04:96:f1:ec:ad:86: d1:a9:91:87:7b:78:78:63:6d:b2:91:de:86:47:48: 95:cc:4b publicExponent: 65537 (0x10001) privateExponent: 00:be:db:f0:da:30:a3:6b:a8:8e:0f:c6:d3:da:f0: 95:75:e8:31:4e:a0:17:ab:fb:f9:3e:1b:62:35:26: 61:fd:c1 prime1: 00:ec:43:b4:25:41:29:98:61:5e:06:10:ee:3d:37: 96:07 prime2: 00:d7:59:3a:5a:0e:67:25:e6:64:ff:04:a7:fc:88: 66:9d exponent1: 63:0b:96:ef:af:3b:92:c7:ee:b4:b8:50:47:95:8f: ed exponent2: 00:d4:2c:a2:d4:76:1a:64:fa:22:8a:2c:d1:42:7c: 35:f5 coefficient: 00:80:a5:54:43:0f:18:97:bb:5f:72:20:24:7e:79: 9b:6b
What this test tells us:
⇒ OpenSSL "genpkey rsa_keygen_bits:10240" - RSA Long Keys
⇐ OpenSSL "pkey -pubin" - View RSA Public Key
2018-01-13, 1571👍, 0💬
Popular Posts:
How to create a new certificate to be used by someone to secure emails using "makecert.exe"? If you ...
Certificate summary - Owner: Starfield Class 2 Certification Authority, "Starfield Technologies, Inc...
How can I use Microsoft "certutil -addstore" command? What are command options supported by "certuti...
How to get help on using the Java Keytool command? I have never used Keytool before. If you are new ...
What are the ways to use certificate for authentication? Can certificates be used to secure Web site...