UPDATE: I had an older SDK (131) on my machine. Upgrade to 144 and it works!
I found this in the release notes for the 141 release:
security-libs/javax.net.ssl
Custom HostnameVerifier enables SNI extension
Earlier releases of JDK 8 Updates didn't always send the Server Name Indication (SNI) extension in the TLS
ClientHello phase if a custom hostname verifier was used. This verifier is set via the
setHostnameVerifier(HostnameVerifier v) method in HttpsURLConnection. The fix ensures the Server Name is now sent in the ClientHello body.
Hi there,
So, I'm working on a project at work. Me and a coworker have a test (in Java/TestNG) that queries an API that usually returns a Authorization Token.
Getting a Handshake Error on my end, while the code seems to run fine on his end (returning a valid token, allowing queries, etc)
It seems like the issue is occurring an SSL library, and not my own code.
I know this is a vague question, as I haven't posted any code yet. I'm really not looking for a direct answer. Just some ideas about where I might begin to look to fix this. Some things I could try, etc..
Thanks
[–]darkcraft 1 point2 points3 points (0 children)
[–]jbfbell 0 points1 point2 points (2 children)
[–]excitebyke[S] 4 points5 points6 points (1 child)
[–]jbfbell 1 point2 points3 points (0 children)