DH keypair exception in salesforce

1k Views Asked by At

I want to get access token of go instant api and I when I did this it send me following error


17:21:46:505 EXCEPTION_THROWN [10]|System.CalloutException: java.lang.RuntimeException: Could not generate DH keypair


Please help me with this problem.

2

There are 2 best solutions below

1
stash On BEST ANSWER

The issue has been resolved. It was due to a misconfiguration on our TLS endpoint that made it incompatible with Apex Callouts (and some Java versions). I've confirmed Apex Callouts are once again working.

3
GoInstant Support On

It sounds like your SSL Library doesn't support 2048-bit DH parameters. Take a look at the BouncyCastle SSL Library as an alternative to what you're using. https://www.bouncycastle.org/latest_releases.html If you continue to have problems after changing to BouncyCastle, please email us at support at goinstant.com so we can do a more in-depth debug of your problems.

re: https://developers.goinstant.com/v1/rest-api/authentication.html#comment-1397240856