How can I use DH key size 1024 bits in Java 8 or 11

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In