JDK-8137048 : Handshake exception - Could not generate DH keypair
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.security
  • Affected Version: 7u51
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-09-23
  • Updated: 2016-01-11
  • Resolved: 2016-01-11
Related Reports
Duplicate :  
Description
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) 
Comments
This looks like a duplicate of JDK-8062834 - I'm confirming with submitter.
02-10-2015