2

We have been asked to invoke a specific rest service with BASIC AUTHENTICATION over HTTPS (TLS 1.2). I am using Spring restTemplate to invoke this service.

If it is less than TLSv1.2, I can use HTTP client to enforce 1.2. But How do I check what TLS version is being used by restTemplate?

Vijay M
  • 49
  • 1
  • 5
  • 1
    It's not up to the template, or Spring. It is determined by Java. If not configured it will be determined by the Java version. And of course by what the peer supports: it's negotiated. – user207421 Jun 30 '17 at 23:05
  • This questions ask for how to enforce a specific TLS-version: https://stackoverflow.com/questions/39161542/how-to-enforce-tls1-2-to-rest-client-using-rest-template and https://stackoverflow.com/questions/17619871/access-https-rest-service-using-spring-resttemplate – Datz Jan 14 '21 at 05:27

1 Answers1

1

Answer provided in the comment by @ejp is correct:

It's not up to the template, or Spring. It is determined by Java. If not configured it will be determined by the Java version. And of course by what the peer supports: it's negotiated.

user207421
  • 305,947
  • 44
  • 307
  • 483
Vijay M
  • 49
  • 1
  • 5