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.
Thanks,
Rick
brianSat 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.
RickMon 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?
matthewTue 12 Dec 2023
I believe this issue is resolved if you are able to build Fantom from source and use the latest from GitHub.
Rick Fri 8 Dec 2023
Hello,
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.
Thanks,
Rick
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.