SSL issue : javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

We are using apache HttpClient library to access commcare API and retrieve
that.

It works fine on my local machine, but when we moved the application on the
server, the application is throwing an exception.

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Is commcare using a self signed certificate ?

Any idea what this might be? Is it a setting on the server that we need to
change? The code runs correctly on my machine.

Thank you.

Hi Diokey

We are using a Thawte certificate so you shouldn't have any issues. What
version of Java are you running on your local machine vs your server? Some
users https://github.com/rschreijer/lutung/issues/16#issuecomment-28672337
have reported that upgrading to Java 7 has fixed this issue.

Another user http://stackoverflow.com/a/23508599 also reported that they
had 2 different bouncy castles provider JARs in the classpath. Both drawn
in by two different dependencies and that removing the older version fixed
the issue for them.

··· On 15 October 2014 20:02, Diokey Olivier wrote:

We are using apache HttpClient library to access commcare API and
retrieve that.

It works fine on my local machine, but when we moved the application on
the server, the application is throwing an exception.

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Is commcare using a self signed certificate ?

Any idea what this might be? Is it a setting on the server that we need to
change? The code runs correctly on my machine.

Thank you.

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

Hi Skelly,

Thanks for your answer. we are using java 6 (on my local computer and the
server). I will try the suggested solutions and see what happens.

Thank you.

··· On Thursday, October 16, 2014 4:40:55 AM UTC-4, skelly wrote: > > Hi Diokey > > We are using a Thawte certificate so you shouldn't have any issues. What > version of Java are you running on your local machine vs your server? Some > users > > have reported that upgrading to Java 7 has fixed this issue. > > Another user also reported that > they had 2 different bouncy castles provider JARs in the classpath. Both > drawn in by two different dependencies and that removing the older version > fixed the issue for them. > > On 15 October 2014 20:02, Diokey Olivier <diokey...@gmail.com > wrote: > >> We are using apache HttpClient library to access commcare API and >> retrieve that. >> >> It works fine on my local machine, but when we moved the application on >> the server, the application is throwing an exception. >> >> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated >> >> Is commcare using a self signed certificate ? >> >> Any idea what this might be? Is it a setting on the server that we need >> to change? The code runs correctly on my machine. >> >> Thank you. >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CommCare Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-developers+unsubscribe@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Simon Kelly > Senior Engineer | Dimagi South Africa >