Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (83)
EC Keys (2415)
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 (6559)
Revoked Certificates (16)
Root CA (85)
RSA Keys (5293)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "genrsa 32" - Generate RSA Short Keys
How to generate a new RSA key pair with a shorter key size using OpenSSL "genrsa" command?
✍: FYIcenter.com
If you need a new RSA key pair with a shorter key size for testing purpose, you can use the OpenSSL "genrsa" command as shown below:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> genrsa -out my_rsa_short.key 32 Generating RSA private key, 32 bit long modulus .+++++++++++++++++++++++++++ .+++++++++++++++++++++++++++ e is 65537 (0x10001) OpenSSL> rsa -in my_rsa_short.key -text Private-Key: (32 bit) modulus: 2860622833 (0xaa81a3f1) publicExponent: 65537 (0x10001) privateExponent: 2570348229 (0x993466c5) prime1: 56039 (0xdae7) prime2: 51047 (0xc767) exponent1: 53283 (0xd023) exponent2: 28991 (0x713f) coefficient: 23967 (0x5d9f) writing RSA key -----BEGIN RSA PRIVATE KEY----- MC0CAQACBQCqgaPxAgMBAAECBQCZNGbFAgMA2ucCAwDHZwIDANAjAgJxPwICXZ8= -----END RSA PRIVATE KEY-----
What this test tells us:
⇒ OpenSSL "genrsa 10240" - Generate RSA Long Keys
⇐ OpenSSL "rsa -pubin" - View RSA Public Key
2023-09-21, 9702👍, 3💬
Popular Posts:
Certificate summary - Owner: GlobalSign Domain Validation CA - G2, GlobalSign nv-sa, BE Issuer: Glob...
Certificate summary - Owner: Dell Inc. Enterprise Issuing CA1, Dell Inc. Issuer: Dell Inc. Enterpris...
Certificate summary - Owner: *.booking.com, Domain Control Validated Issuer: SERIALNUMBER=07969287, ...
Certificate Summary: Subject: DigiCert High Assurance CA-3 Issuer: DigiCert High Assurance EV Root C...
What are CRL (Certificate Revocation List) and OCSP (Online Certificate Status Protocol)? I want to ...