Small question regarding the Spring WebClient from Spring Webflux, and how to configure the TLS versions when sending outbound http request (where I'm the client).
In a SpringBoot MVC project (not Webflux), I am using the Webflux Webclient (which is possible to mix the two).
I am using the client to call two external parties HTTP servers I have absolutely no control over. First service is AliceService. Alice service is configured to accept only requests that are TLSv1.2
Second service is BobService. Bob Service is configured the accept only requests that are TLSV1.3
Hence, I am currently facing an issue. I am never able to call both of them at the same time.
I tried different combinations of
-Djdk.tls.client.protocols=TLSv1.2
-Djdk.tls.client.protocols=TLSv1.3
server.ssl.enabled-protocols=TLSv1.2
server.ssl.enabled-protocols=TLSv1.3
Every time, I will either change all my outbound requests to TLSv1.2 (hence the service accepting only TLSv1.3 will fail) or change all my outbound call to TLSv1.3 (hence the service accepting only TLSv1.2 will fail).
I even have two different instances of WebClient.
May I ask how to configure which TLS version is used when sending the outbound request? How to resolve this problem please?
Thank you