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 (6528)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5269)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "genpkey -pkeyopt rsa_keygen_pubexp:2" Runs Forever
What will happen if I use 2 as the public exponent to generate an RSA private key?
✍: FYIcenter.com
OpenSSL will run forever, if you use 2 as the public exponent to generate an RSA private key, because OpenSSL can no find any private exponent to meet the RSA requirements. See the test below:
C:\Users\fyicenter>\local\openssl\openssl OpenSSL> genpkey -algorithm rsa -out rsa_test.key -pkeyopt rsa_keygen_bits:256 -pkeyopt rsa_keygen_pubexp:2 ....+++++++++++++++++++++++++++*....+++++++++++++++++++++++++++*.....+++++++++++ ++++++++++++++++*...+++++++++++++++++++++++++++*..+++++++++++++++++++++++++++*.. ..........+++++++++++++++++++++++++++*....+++++++++++++++++++++++++++*...+++++++ .... (running forever)
What this test tells us:
⇒ OpenSSL "genpkey -des" - DES Encrypt RSA Keys
⇐ OpenSSL "genpkey -pkeyopt rsa_keygen_pubexp:1" - Bad RSA Key
2017-09-08, 2536👍, 0💬
Popular Posts:
How to import a private key into Mac computer? I have the private key in a file. If you have a priva...
Certificate summary - Owner: Google Internet Authority G2, Google Inc, US Issuer: GeoTrust Global CA...
How to list all options that are supported by a specific OpenSSL command? I know the command but I d...
Certificate Summary: Subject: GlobalSign Organization Validation CA - G2 Issuer: GlobalSign Root CA ...
How to examine a CRL file with Portecle? To examine a CRL file: From the Examine menu, choose Examin...