function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vincent WahVincent Wah 

UNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.

Hi All,

After SFDC disable TLS1.0, the java code we wrote to connect to SFDC web service no longer working.  We have already using JDK_1.7.0_51 but still see error below when trying to connect to SFDC.
UNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.

We have also tried approach mentioned https://tonyyan.wordpress.com/2015/07/17/enabled-tls-1-2-and-tls-1-1-on-java-7/  to enable TLS1.1 but still not working.

Below is the code we are using to connect to SFDC

SforceServiceLocator sServiceLocator = new SforceServiceLocator();
sServiceLocator.setSoapEndpointAddress(url);
SoapBindingStub binding = (SoapBindingStub) sServiceLocator.getSoap();
LoginResult loginResult = binding.login("user", "pwd");

Does anyone encounter same issue?
 
Manish BhatiManish Bhati
For Java 7 (1.7) - Enable TLS 1.1 and TLS 1.2 using the https.protocols Java system property for HttpsURLConnection. To enable TLS 1.1 and TLS 1.2 on non-HttpsURLConnection connections, set the enabled protocols on the created SSLSocket and SSLEngine instances within the application source code.

Or upgrade to Java 8 as both are enabled by default.

There are different methods to enable it according to where you are using Java, whether on some server or from some applet or elsewhere.

Reference:- https://help.salesforce.com/apex/HTViewSolution?id=000221207

Mark it as answer if it solves your problem.
VineetKumarVineetKumar
TLS 1.1 and 1.2 are not enabled by default on JDK 1.7 is used as a client.
https://blogs.oracle.com/java-platform-group/entry/java_8_will_use_tls
I would suggest you to updgrade to JDK 1.8 or
Enable TLS 1.2 /1.2 on JDK 1.7 if it supports some legacy application (Go to > Advanced Security Settings section and check the Use TLS 1.1 and Use TLS 1.2 checkboxes)
Amit Chaudhary 8Amit Chaudhary 8
 I hope that will help you to understand the issue
1) http://cloudyworlds.blogspot.in/2016/06/tls-10-has-been-disabled-for-sandbox.html