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 "genpkey dh_paramgen_prime_len:256" - DH Short Keys
How to generate a new DH key pair with a longer key size using OpenSSL "genpkey" command?
✍: FYIcenter.com
If you need a new DH key pair with a longer key size for testing purpose, you can use the OpenSSL "genpkey" command as shown below:
C:\Users\fyicenter>\local\openssl\openssl OpenSSL> genpkey -genparam -algorithm dh -out dh_test.prm -pkeyopt dh_paramgen_prime_len:256 ..+...............................+.......+...+.........+..........+.....+...... +....+.........+..+....+..........+...+.............+........+..........+.....+. .............+............++*++*++*++*++*++*++*++*++*++*++*++* OpenSSL> genpkey -paramfile dh_test.prm -out dh_test.key OpenSSL> pkey -in dh_test.key -text -noout DH Private-Key: (256 bit) private-key: 6c:dc:6a:8e:20:70:0b:51:48:17:36:a1:40:7f:d7: b1:db:e2:44:b4:a2:e2:43:2f:b6:af:2a:a2:d5:c8: a3:34 public-key: 00:ae:1e:0c:de:f3:0f:f7:d8:55:d1:1e:a6:90:d0: 20:51:7a:8e:72:3b:b2:53:d4:da:f2:99:e7:42:1d: 13:88:19 prime: 00:de:a5:5b:2c:59:65:ad:ef:7e:66:48:13:af:8a: 78:69:3c:80:b3:3c:77:82:44:20:ff:ca:6c:b6:9e: 56:7b:2b generator: 2 (0x2)
What this test tells us:
⇒ OpenSSL "genpkey dh_paramgen_prime_len:3072" - DH Long Keys
⇐ OpenSSL "pkey -pubin" - View DH Public Key
2017-09-01, 2382👍, 0💬
Popular Posts:
How to delete a root CA (Certificate Authority) certificate from Firefox? I don't know this root CA ...
What is "certmgr.exe" on Windows? What can I use it for? "certmgr.exe" is a Certificate Manager comm...
Certificate Summary: Subject: Deutsche Telekom Root CA 2 Issuer: Deutsche Telekom Root CA 2 Expirati...
Certificate Summary: Subject: SSL.com Root Certification Authority RSA Issuer: Certum Trusted Networ...
Certificate summary - Owner: Go Daddy Secure Certificate Authority - G2, http://certs.godaddy.com /re...