Android Lollipop - 无对等证书

时间:2016-06-01 12:54:23

标签: android spring apache ssl

我正在使用Godaddy CA在我的tomcat服务器中为android实现ssl。它适用于Kitkat(4.4)但它在Lollipop(5.1)版本中没有出现证书错误。我无法弄清楚这一点。

  

javax.net.ssl.SSLPeerUnverifiedException:没有对等证书   com.android.org.conscrypt.SSLNullSession.getPeerCertificates(SSLNullSession.java:104)   在   org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:98)   在   org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:393)   在   org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:170)   在   org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169)   在   org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)   在   org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:365)   在   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:560)   在   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:492)   在   org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:470)

0 个答案:

没有答案