且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java8,HttpClient,接收到“已接收的致命警报:handshake_failure".

更新时间:2022-06-09 05:19:16

根据

According to ssllabs, the server is all right, and it works java7+. Notably, clients that don't support SNI will fail talking to the server. In your debug dump, SNI is indeed missing, and that's likely the problem.

默认情况下,应在java7 +上启用SNI.您的stacktrace显示确实在java8上.此链接可能会对您有所帮助.

SNI should be enabled by default on java7+. Your stacktrace shows that indeed it's on java8. This link might help you.