I am trying to connect to a new org using the Java SOAP API and am getting the following error:
[UnexpectedErrorFault [ApiFault exceptionCode='UNSUPPORTED_CLIENT'
exceptionMessage='TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or higher when connecting to Salesforce using https.'
extendedErrorDetails='{[0]}'
]
]
Anyone know how I can set the config differently to force TLS 1.1 or 1.2? I am currently making the connection like so:
ConnectorConfig config = new ConnectorConfig();
config.setUsername(creds.username);
config.setPassword(creds.password + creds.securityToken);
config.setProxy("my.proxy.com", 80);
try {
soapConnection = Connector.newConnection(config);
metadataConnection = new MetadataConnection(config);
}