Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8137048

Handshake exception - Could not generate DH keypair

XMLWordPrintable

      WLS 12.1.3 on Java 7u51 gets exception during SSL handshake:

      java.lang.RuntimeException: Could not generate DH keypair
      @ at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1287)
      .....
      Caused by: java.lang.RuntimeException: Could not generate DH keypair
      @ at sun.security.ssl.DHCrypt.(DHCrypt.java:136)
      at
      @ sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:621)

      ......
      @ Caused by: java.security.InvalidAlgorithmParameterException: Prime size must
      be multiple of 64, and can only range from 512 to 1024 (inclusive)
      at
      com.sun.crypto.provider.DHKeyPairGenerator.initialize(DHKeyPairGenerator.java:
      120)

            coffeys Sean Coffey
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: