java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。Android 2.3
看来证书的颁发者不在2.3设备的信任存储中。
查看GoDaddy证书的根ca和中间ca,并检查证书是否在2.3设备上存在。
有关获取2.3证书列表的信息,请参见http://www.andreabaccega.com/blog/2010/09/23/android-root-certification-authorities-list/。
当只有根CA可用时,请确保您的Web服务器还根据请求提供中间证书。
解决方法在我的服务器(生产服务器)中,我具有goDaddyssl证书。我有iOS和Android应用程序都与服务器连接,iOS都没有问题连接,Android版本为4.一切都很好,但是设备版本为2.3。我总是收到SSLHandshakeException。
我在Android开发人员页面(https://developer.android.com/training/articles/security-ssl.html)上确实很喜欢。
然后,我看到了这个线程在谈论扩展密钥用法,但是在调试时,我得到了以下信息:
[2]: OID: 2.5.29.37,Critical: falseExtended Key Usage: [ '1.3.6.1.5.5.7.3.1','1.3.6.1.5.5.7.3.2' ]
因此,我猜该证书不是“强制”扩展密钥用法。
此外,在此线程上还有其他一些可能的原因,例如日期/时间完全错误,这些原因都不存在。
考虑到这一点,我现在不知道问题可能在哪里。
有什么建议?
编辑: 下面的StackTrace:
08-04 16:54:30.139: W/System.err(4832): Caused by: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.08-04 16:54:30.149: W/System.err(4832): at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:161)08-04 16:54:30.149: W/System.err(4832): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)08-04 16:54:30.149: W/System.err(4832): at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)08-04 16:54:30.159: W/System.err(4832): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
相关文章:
1. index.php错误,求指点2. android - Windows系统下运行react-native App时,报下面的错误?3. python局部变量的问题4. Docker for Windows10 配置共享文件夹失败该如何解决?5. mysql - 要取出数据库中按某字段排序后的前10,20,30条数据要怎么做?6. mysql - inner join和left join的效率问题7. 关于mysql unique的问题,如图所示8. c++ - pycharm 4.5 的 python -> preferences 找不到9. 运行python程序时出现“应用程序发生异常”的内存错误?10. showpassword里的this 是什么意思?代表哪个元素