I am using a third party provided java SDK to make HTTP calls (SDK provides http client). When i invoke the SDK through a simple java program i see TLSv1.2 being used and calls are successful. But when i invoke the SDK through a spring-boot application (same code), the call is failing because of unsupported TLSv1 usage.
using simple java program,
public class SdkTest {
public static void main(String[] args) throws IOException {
sdk.invoke(...);
}
}
using spring-boot,
@ComponentScan
@EnableAutoConfiguration
public class MyApplication extends SpringBootServletInitializer {
public static void main(String[] args) throws IOException {
SpringApplication.run(MyApplication.class);
}
}
@Controller
public class TestController {
@RequestMapping("/")
public void test() {
sdk.invoke(...);
}
}
Question :
- How is TLS version selected ?
- Why is a different version of TLS is being selected in different programs.
Note: The SDK provides a http client to connect to a third part server.