Vonage / vonage-java-code-snippets

Java code examples for using Vonage
MIT License
11 stars 31 forks source link

Get javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake using nexmo-java SDK #51

Closed RomanMarkin closed 5 years ago

RomanMarkin commented 5 years ago

Hello,

I'm trying to run a quickstart example (https://github.com/nexmo-community/nexmo-java-quickstart/blob/master/src/main/java/com/nexmo/quickstart/voice/TransferCall.java) but I get an exception 'javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake'.

This is returned from Nexmo host in response to POST https://api.nexmo.com/v1/calls.

I'm using jdk1.8.0_25 on MacOS 10.14.2 and run java with -Djavax.net.debug=all flag to get SSL debug log (see attached). As I can see, my java client is using TLSv1.2, but Nexmo run.log remote host closes a connection during handshake with description = handshake_failure.

Can you please point me to the reason of this issue and how can I resolve it.

RomanMarkin commented 5 years ago

I installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy jars and that's resolved my issue.