How to set SNI (Server Name Indication) in TLS Handshake using Apache HttpComponents Java

时光毁灭记忆、已成空白 提交于 2020-01-25 06:53:48

问题


I'm using org.apache.http.ssl.SSLContextBuilder to provide my certificate/keys in my HTTPS requests, but I would like to customize my SNI in TLS Handshake and I'm not sure where I can do this

Does Apache Java Lib allow this customization?

I found https://hc.apache.org/httpcomponents-client-4.5.x/httpclient/apidocs/org/apache/http/conn/ssl/SSLConnectionSocketFactory.html and How to enable SNI in HTTP request using Apache HTTPComponents HttpClient? but both does not have anything about methods to set SNI in Apache Lib.

来源:https://stackoverflow.com/questions/59788491/how-to-set-sni-server-name-indication-in-tls-handshake-using-apache-httpcompon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!