Failed to upload file using TLSv1.2, but working for TLSv1.1

Highlighted
First-time Contributor

Failed to upload file using TLSv1.2, but working for TLSv1.1

I am uploading file by setting environment variable(-Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2") and using jdk 1.8 but it fails and giving below error BoxNetGX_Worker-1, WRITE: TLSv1.2 Application Data, length = 490 BoxNetGX_Worker-1, WRITE: TLSv1.2 Application Data, length = 4868 BoxNetGX_Worker-1, handling exception: java.net.SocketException: Connection reset by peer: socket write error %% Invalidated: [Session-22, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256] BoxNetGX_Worker-1, SEND TLSv1.2 ALERT: fatal, description = unexpected_message BoxNetGX_Worker-1, WRITE: TLSv1.2 Alert, length = 26 BoxNetGX_Worker-1, Exception sending alert: java.net.SocketException: Connection reset by peer: socket write error BoxNetGX_Worker-1, called closeSocket() BoxNetGX_Worker-1, called close() BoxNetGX_Worker-1, called closeInternal(true) Finalizer, called close() Finalizer, called closeInternal(true) https-jsse-nio-443-exec-18, called closeOutbound() https-jsse-nio-443-exec-18, closeOutboundInternal() https-jsse-nio-443-exec-18, SEND TLSv1 ALERT: warning, description = close_notify https-jsse-nio-443-exec-18, WRITE: TLSv1 Alert, length = 32 [BoxNetGX_Worker-1 2020-03-20 18:45:52,466] ERROR com.ricoh.mfpsaas.cloud.box.BoxAPIClient - Error occured while calling uploadFile(). java.net.SocketException: Connection reset by peer: socket write error
1 REPLY 1
Highlighted
Box Employee

Re: Failed to upload file using TLSv1.2, but working for TLSv1.1

Hi @Vishwajit,

 

It's a little bit difficult to parse the error block, but what I would suggest is that you take a look at our TLS 1.1 EOL guidance here. This will show you, based on language, the best way to upgrade your systems for TLS 1.2. That should allow you to make calls against the APIs.

 

- Jon