Skip to content Skip to sidebar Skip to footer

Httpclient Generates Sslexception After Acquiring New Domain Name

Recently I acquired a new domain name to use with an existing Android application. I also bought SSL certificate from a trusted CA (Comodo). When I browse to the new domain with a

Solution 1:

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.


Post a Comment for "Httpclient Generates Sslexception After Acquiring New Domain Name"