Running my app on android 4.0 I received SSLHandshakeException. I found the 
solution in Android Developer Console: 
https://developer.android.com/training/articles/security-ssl.html#UnknownCa
But I don`t understand which certificate I should use. I tried different 
certificates from my server, but none of them worked. Please help me to 
find this certificate. 
If this problem is unsolvable, may I release app with http protocol instead 
of https?

Here is stacktrace: 
03-31 12:05:33.453 3017-3190/ru.sp2all.mobile W/System.err: 
javax.net.ssl.SSLHandshakeException: 
java.security.cert.CertPathValidatorException: Trust anchor for 
certification path not found.
03-31 12:05:33.453 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477)
03-31 12:05:33.453 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:328)
03-31 12:05:33.453 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection.setupSecureSocket(HttpConnection.java:185)
03-31 12:05:33.453 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection(HttpsURLConnectionImpl.java:433)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl$HttpsEngine.makeConnection(HttpsURLConnectionImpl.java:378)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:205)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:152)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
ru.sp2all.mobile.NetworkUtil.requestString(NetworkUtil.java:1597)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
ru.sp2all.mobile.NetworkUtil.requestJSONObject(NetworkUtil.java:1429)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
ru.sp2all.mobile.NetworkUtil$2.run(NetworkUtil.java:1366)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
03-31 12:05:33.460 3017-3192/ru.sp2all.mobile W/System.err:     at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
03-31 12:05:33.468 3017-3192/ru.sp2all.mobile W/System.err:     at 
java.lang.Thread.run(Thread.java:1019)

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-discuss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-discuss/7da23e64-aed3-4142-82c4-fc031c1fef77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to