On Mon, 2011-03-07 at 15:24 -0800, Travis T wrote:
> I have a server with a self signed certificate.  I've created a java key
> store (trustStore) which includes that server in the trust store.  I have a
> keystore which includes my certificate and private key.  My certificate was
> signed by the server. I've used the API to create a SSLSocketFactory that
> registers my keystore and truststore.
> 
> Using Apache HTTPClient 4.0.1 it all worked.  I upgraded to 4.1 and other
> than having to reorder the arguments in the Scheme constructor the code is
> the same.  However, now I get a javax.net.ssl.SSLPeerUnverifiedException:
> peer not authenticated
> 
> Help, please?
> 

I can't think of any changes in 4.1 that could lead to a different
behavior with regards to SSL authentication compared to 4.0.1. Both
versions essentially use the same JSSE API to get the job done.

Try running you code with the SSL debug enabled to get more details
about the trust material sent by the server during the SSL handshake.

Oleg 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to