Is there a way to do client authentication with HttpClient without setting javax.net.ssl.keyStore?
I tried the following code after building the contrib files: HttpClient httpClient = new HttpClient(); URL keyStoreURL = new URL("file:/home/raul/keyStore.jks"); URL trustStoreURL = new URL("file:/home/raul/trustStore.jks"); AuthSSLProtocolSocketFactory socketFactory = new AuthSSLProtocolSocketFactory( keyStoreURL, "keyStorePassword", trustStoreURL, "trustStorePassword"); Protocol httpsProtocol = new Protocol(url.getProtocol(), socketFactory, url.getPort()); httpClient.getHostConfiguration().setHost(url.getHost(), url.getPort(), httpsProtocol); But this fails with: java.net.SocketException: Default SSL context init failed: null Thanks, Raul Acevedo http://www.cantara.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]