Extended server_name (SNI Extension) not sent with jdk1.8.0 but send with jdk1.7.0

后端 未结 5 928
旧时难觅i
旧时难觅i 2020-11-27 07:53

I have implemented a JAX-WS client by using ApacheCXF (v3.0.4) and everything works successfully but the problem comes when I want to use a secure connection (SSL/TLS) with

5条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 08:16

    First of all, this "server_name" stuff is associate with the SNI (Server Name Indication) extension. The Java 8 JSSE documentation talks about it here.

    The documentation includes example code that shows how to set the server names that are sent. The code is for Java 8.

    However, I can't figure out why (apparently) Java 7 is setting the server name by default, and Java 8 isn't. (The easy way to figure it out would be to use a debugger to figure out how the SSL engine object is created and initialized.)

提交回复
热议问题