[Solved] HttpClient generates SSLException after acquiring new domain name


That’s probably because Apache HttpClient does not support SNI (server name indication), where you can have multiple certificates behind the same IP address. This means, that it does not send the target hostname inside the SSL handshake and thus the server has only the target IP address to decide which certificate it should use and just uses the default certificate for the IP – which is probably the wrong one.

6

solved HttpClient generates SSLException after acquiring new domain name