How can I use DH key size 1024 bits in Java 8 or 11
Issue
- OpenJDK 8 and OpenJDK 11 based server cannot connect to server using DH key size of 1024 bits with error
DHPublicKey does not comply to algorithm constraints
- We have a storage service that uses an embedded java server. Storage vendors have had to set DH key exchange ephemeral key size to 1024 bits.
Environment
- OpenJDK
- 8.x
- 11.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.