I have to make a request to a backend with TLS certificate and private key and in my troubleshooting I got error when using the same hostname in the Server Name Indication. See:
I got ERROR:
openssl s_client -connect endpoint.com:443 -servername endpoint.com
I got SUCCESS:
openssl s_client -connect endpoint.com:443 -servername another_endpoint_name.com
But I can't find a way to change the server name indication in the TLS Handshake
in the Apache Lib.
Is it even possible?
Related question: How to set SNI (Server Name Indication) in TLS Handshake using Apache HttpComponents Java