#2900 WebClient and TLS1.2

Rick Fri 8 Dec 2023


Does WebClient support TLS1.2? Looking at reqVersion I see that it defaults to 1.1, but the only other option I see is 1.0.



brian Sat 9 Dec 2023

That is the HTTP version, not the TLS version (TLS version is negotiated at the TCP layer). We should support whatever version of TLS that your version of Java supports and is managed by the web::WebClient.socketConfig object.

Rick Mon 11 Dec 2023

Thank you. I've been trying to troubleshoot a WebClient request error I am getting when sending a POST request to an API. I am getting a javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version error. Based on some research it looks like this is associated with a TLS version issue. I am running on OpenJDK 21.0.1 and the the API host uses TLS1.3 when connecting to it from the browser. Any thoughts on what may be causing the issue?

matthew Tue 12 Dec 2023

I believe this issue is resolved if you are able to build Fantom from source and use the latest from GitHub.

Login or Signup to reply.