hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: https access to servlet requiring client certificate
Date Tue, 01 Aug 2006 14:31:54 GMT
dksleung@hotmail.com wrote:
> I've an applet that needs to access a servlet (well, actually a jsp page) that requires
a client certificate.
> 
> java.net.SocketException: Default SSL context init failed: failed to decrypt safe contents
entry: javax.crypto.BadPaddingException: Given final block not properly padded
> 	at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)

This indicates that either the server is not implementing SSL correctly.
Or, more likely, that the response is not SSL because the server is not
picking up the SSL handshake and instead replies plain text.
Are there any proxies in the way which you failed to configure for
HttpClient? Connecting to the wrong port? Try enabling the HttpClient
context log, to see what parameters HttpClient uses when establishing
the connection:
http://jakarta.apache.org/commons/httpclient/logging.html

hope that helps,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message