javax.net.ssl.SSLPeerUnverifiedException: No peer certificate

330 views
Skip to first unread message

js

unread,
Jun 6, 2015, 5:39:46 AM6/6/15
to asyncht...@googlegroups.com
hi:
  I am developing an android app that has to communicate with server over https with self signed certificate.

this is my logcat massage:
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
06-06 05:24:23.057 20830-20929 W/System.err﹕ at org.apache.harmony.xnet.provider.jsse.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:146)
06-06 05:24:23.061 20830-20929/ W/System.err﹕ at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:93)
06-06 05:24:23.069 20830-20929/ W/System.err﹕ at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:388)
06-06 05:24:23.069 20830-20929 W/System.err﹕ at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:165)
06-06 05:24:23.073 20830-20929/ W/System.err﹕ at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
06-06 05:24:23.073 20830-20929 W/System.err﹕ at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
06-06 05:24:23.077 20830-20929/ W/System.err﹕ at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
06-06 05:24:23.077 20830-20929/ W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
06-06 05:24:23.085 20830-20929/ W/System.err﹕ at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
06-06 05:24:23.101 20830-20929/ W/System.err﹕ at com.loopj.android.http.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:148)
06-06 05:24:23.101 20830-20929/ W/System.err﹕ at com.loopj.android.http.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:179)
06-06 05:24:23.101 20830-20929/ W/System.err﹕ at com.loopj.android.http.AsyncHttpRequest.run(AsyncHttpRequest.java:108)
06-06 05:24:23.105 20830-20929/ W/System.err﹕ at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
06-06 05:24:23.105 20830-20929/System.err﹕ at java.util.concurrent.FutureTask.run(FutureTask.java:234)
06-06 05:24:23.109 20830-20929 W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
06-06 05:24:23.109 20830-20929/ W/System.err﹕ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
06-06 05:24:23.109 20830-20929 W/System.err﹕ at java.lang.Thread.run(Thread.java:841)

i used AsyncHttpClient to post data ,and i used this method:
public RequestHandle post(Context context, String url, HttpEntity entity, String contentType, ResponseHandlerInterface responseHandler) {
return this.sendRequest(this.httpClient, this.httpContext, this.addEntityToRequestBase(new HttpPost(this.getURI(url)), entity), contentType, responseHandler, context);
}

How can I make it work?
Any answer is appreciated,thanks

Stéphane LANDELLE

unread,
Jun 6, 2015, 7:45:38 AM6/6/15
to asyncht...@googlegroups.com
You're not at the right place, see https://github.com/loopj/android-async-http/issues/876

Stéphane Landelle
Lead developer


--
You received this message because you are subscribed to the Google Groups "asynchttpclient" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asynchttpclie...@googlegroups.com.
To post to this group, send email to asyncht...@googlegroups.com.
Visit this group at http://groups.google.com/group/asynchttpclient.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages