Android L - no partner certificate

I developed a small application that connects to my server using SSL with a self-signed certificate. To make it work, I uploaded my certificate to a custom keystore using BouncyCastleProvider and imported the certificate into my own SSLSocketFactory. Everythink works fine with Android 2.3 (sdk minimum) up to 4.4.4. But in android L (Preview) my application does not work:

Tue 12 Aug 14:34:40 BRT 2014: javax.net.ssl.SSLPeerUnverifiedException: Missing partner certificate. com.android.org.conscrypt.SSLNullSession.getPeerCertificates (SSLNullSession.java:104) in org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:93) in org.apache.http.conn.ssl. SSLSocketFactory.createSocket (SSLSocketFactory.javahaps88) in org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:165) in org.apache.http.impl.conn.AbstractPoolEntava.ntavaopntntop 164) in org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:119) in org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.javahaps60) in org.apache.htt .impl.client.AbstractHttpClient.execute (AbstractHttpClient.java<55) in org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:487) in org.apache.http.impl.client.AbstractHecpClient (AbstractHttpClient.java:465) ....

and I absolutely don’t know how to fix it. Any help would be really appreciated.

+7
source share
1 answer

Just so you know how we fixed this problem in our project. Maybe this can help anyone.

We based our application on ionic and AndroidAsync network libraries that had this error: https://github.com/koush/AndroidAsync/issues/187

An update for the latest version (1.4.0) fixed the "no peer certificate" problem for us on Android L.

0
source

Source: https://habr.com/ru/post/974187/


All Articles