That sounds like an SSL error while trying to connect to another server for S-2-S. A quick search about this error returned Java: Why does SSL handshake give 'Could not generate DH keypair' exception? - Stack Overflow. There you can find a few things you can do. The most interesting ones to me are updating to latest Java and install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files.
Good luck,
Gaston