report client throws "java.lang.RuntimeException: Could not generate DH keypair" error

Your rating: None Average: 5 (5 votes)

java.lang.RuntimeException: Could not generate DH keypair

Symptoms

It may happen for some customers that when running the report client command it throws an error for e.g.

root@localhost:~# /opt/open-xchange/sbin/report -s
Starting the Open-Xchange report client. Note that the report generation may take a
little while.
Server response:
java.lang.RuntimeException: Could not generate DH keypair
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1649)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1612)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1595)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1172)
at
...........

Reason

This is in general not related with Open-Xchange but the installed JVM on the server. This error may come for Oracle and IBM Java flavours.

Solution

There are two options to fix this;

1- You can install the Oracle Java cryptographic extension for long keys. This is a kind of short-term solution because in future versions we may not (not 100% confirmed) support
Oracle or IBM Java versions and only give support for OpenJDK for Open-Xchange.

2- You can install the OpenJDK and set it as default Java JVM.

https://www.google.com.pk/#q=replace+oracle+java+with+openjdk

You can choose any one of them. But we always recommend to make a backup before doing it. So that you can roll back if something happens.

Here is the link to the currently supported Java versions we support for our Product based on different Linux distributions.

http://oxpedia.org/wiki/index.php?title=AppSuite:OX_System_Requirements#...

Open-Xchange AG | Impressum