且构网

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

Java上的服务器名称指示(SNI)

更新时间:2023-02-24 09:21:24

你可能想跟踪 https://issues.apache.org/jira/browse/HTTPCLIENT-1119

Java 7的底层客户端实现能够支持它并通过SSLSocketImpl #setHost(由sun.net.www.protocol调用)公开该功能。 Java 7使用的https.HttpsClient

the underlying client implementation of Java 7 is capable to support it and exposes the feature via SSLSocketImpl#setHost (called by sun.net.www.protocol.https.HttpsClient

    new URL("https://cmbntr.sni.velox.ch/").openStream()

直到HTTPCLIENT- 1119是固定的

until HTTPCLIENT-1119 is fixed