We are getting an error while connecting to sandbox environment. We get below exception. . Can you please guide me on how to fix this issue ? we are currently using 1.8.2 api for java. This was working till mid of april.
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
05-10-2017 07:19 AM
The javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated doesn't always indicate the specific cause of the issue. You may need to enable the SSL handshake debug by adding the Java VM parameter:
-Djavax.net.debug=ssl:handshake
which will give you more useful information.
Are you sure that you are connecting to the sandbox via a TLS 1.2 connection? The sandbox URL was recently modified to accept only such connections.
05-10-2017 07:27 AM - edited 05-10-2017 07:28 AM
we tried to override the TLS seeting to 1.2 from VM arguments and by setting through System.property. We are unable to override the protocol version.
pool-1-thread-1, WRITE: TLSv1 Handshake, length = 179
pool-1-thread-1, handling exception: java.net.SocketException: Connection reset
pool-1-thread-1, SEND TLSv1 ALERT: fatal, description = unexpected_message
pool-1-thread-1, WRITE: TLSv1 Alert, length = 2
pool-1-thread-1, Exception sending alert: java.net.SocketException: Connection reset by peer: socket write error
pool-1-thread-1, called closeSocket()
pool-1-thread-1, IOException in getSession(): java.net.SocketException: Connection reset
pool-1-thread-1, called close()
pool-1-thread-1, called closeInternal(true)
05-10-2017 08:08 AM
Hello @gopalramadugu1
Another developer offered a solution in another thread that may help: https://community.developer.authorize.net/t5/Integration-and-Testing/GetAcceptPaymentPage-API-is-not...
Richard
05-10-2017 09:55 AM