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

Solution Verified - 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content