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, ∼3501🔥, 0💬
Popular Posts:
How to export all certificates in the server certificate path to a file in Mozilla Firefox 47? To ex...
Certificate summary - Owner: MSIT Machine Auth CA 2, Dredmond, Dcorp, Dmicrosoft, Dcom Issuer: Micro...
Certificate Summary: Subject: GlobalSign Root CA Issuer: GlobalSign Root CA Expiration: 2028-01-28 1...
How to re-encrypt a DSA key file using OpenSSL "dsa" command? I want to change the encryption passwo...
Certificate Summary: Subject: Google Internet Authority G3 Issuer: GlobalSign Expiration: 2021-12-15...