问题
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