This discussion is archived
1 Reply Latest reply: Mar 5, 2013 12:51 PM by MarkNoyes RSS

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

868244 Newbie
Currently Being Moderated
using apache httpclient , i tried to POST XML to a particular REST URL, but showing following error
Any idea?'



Exception in thread "main" javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
     at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
     at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)
     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:692)
     at org.apache.http.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:65)
     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)
     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)
     at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
     at testclientapp.TestClientApp.main(TestClientApp.java:108)
Java Result: 1

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points