Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2389)
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 (6526)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5267)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "genpkey -pkeyopt rsa_keygen_pubexp:1" - Bad RSA Key
Can I use 1 as the public exponent to generate an RSA private key?
✍: FYIcenter.com
No. Using public exponent of 1 will generate identical RSA private key and public key as shown below:
C:\Users\fyicenter>\local\openssl\openssl OpenSSL> genpkey -algorithm rsa -out rsa_test.key -pkeyopt rsa_keygen_bits:256 -pkeyopt rsa_keygen_pubexp:1 .........+++++++++++++++++++++++++++ ................+++++++++++++++++++++++++++ OpenSSL> pkey -in rsa_test.key -text -noout Private-Key: (256 bit) modulus: 00:9c:e6:28:67:b8:c5:7c:fa:a6:67:bc:b4:e9:eb: 64:1d:06:37:d4:a6:f7:9d:20:2d:79:6b:aa:90:ea: c7:d1:1d publicExponent: 1 (0x1) privateExponent: 1 (0x1) prime1: 00:d0:28:ab:a1:8f:18:a1:19:68:e7:7b:2d:60:e7: a1:0d prime2: 00:c0:f5:8a:ac:a2:52:4f:07:aa:80:e7:c1:fc:e6: 4c:51 exponent1: 1 (0x1) exponent2: 1 (0x1) coefficient: 2b:77:16:b9:cb:e8:56:06:08:75:20:58:14:09:b8: 2f
What this test tells us:
⇒ OpenSSL "genpkey -pkeyopt rsa_keygen_pubexp:2" Runs Forever
⇐ OpenSSL "genpkey -pkeyopt rsa_keygen_pubexp:3" - RSA Public Exponent
2018-01-06, 2399👍, 0💬
Popular Posts:
Certificate summary - Owner: *.kaixin001.com, Terms of use at www.verisign.com/rpa (c)05, IT, "Beiji...
Certificate summary - Owner: gp1.adn.edgecastcdn.net, Ops, "EdgeCast Networks, Inc.", L=Santa Monica...
How to download the certificate from a root CA? I need to the root CA certificate to close the certi...
How to generate a 4096-bit RSA key pair with Portecle? I want a very strong private key and public k...
What is Symantec.com CSR Checker? Symantec SSL/TLS Certificate Installation Checker is an online too...