Hi,
I use a custom SecureProtocolSocketFactory, similar to the one at http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trun k/src/contrib/org/apache/commons/httpclient/contrib/ssl/AuthSSLProtocolS ocketFactory.java?view=markup I provde it a keystore and a truststore, and corresponding passwords. Now I do following : HostConfiguration hostConfig = new HostConfiguration(); hostConfig.setHost("www.myurl.com", 443, myhttps); In keystore I have lot many aliases, how does API find which alias to be used for this specific URL(www.myurl.com <http://www.myurl.com/> ). Regards, Nishant Agrawal