com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time:
2015-10-09 18:08
302 查看
http://www.cnblogs.com/mayongsheng/p/4387109.html
https://github.com/awslabs/aws-sdk-android-samples/issues/26
最近使用google的Volley框架遇到一个下载图片的异常com.android.volley.error.NoConnectionError: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Aug 15 05:14:42 GMT+08:00 1970, validation time: Fri Apr 05 23:15:55 GMT+08:00 2013
通过查看日志发现这个图片的下载地址和其他正常的下载地址不一样,使用的是https协议,但我们产品中以前的图片都是http协议,这几个有问题的图片是UI的妹子随便从某个地方下载的,
然后出现了这个问题,google了一下,这个异常说的是在校验证书的时候出现时间校验失败!打开手机的设置,发现手机上的时间居然是好几年前。。。然后,调整好手机时间即可正常下载。
不过这种解决方式很死板,怎么可能让用户这么作呢!!!
有几位大牛提供了解决方案:
http://my.oschina.net/blackylin/blog/144136 http://www.eoeandroid.com/thread-161747-1-1.html
然后还有一篇关于https协议的好博文:
http://www.cnblogs.com/P_Chou/archive/2010/12/27/https-ssl-certification.html
https://github.com/awslabs/aws-sdk-android-samples/issues/26
最近使用google的Volley框架遇到一个下载图片的异常com.android.volley.error.NoConnectionError: javax.net.ssl.SSLHandshakeException: com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time: Sat Aug 15 05:14:42 GMT+08:00 1970, validation time: Fri Apr 05 23:15:55 GMT+08:00 2013
通过查看日志发现这个图片的下载地址和其他正常的下载地址不一样,使用的是https协议,但我们产品中以前的图片都是http协议,这几个有问题的图片是UI的妹子随便从某个地方下载的,
然后出现了这个问题,google了一下,这个异常说的是在校验证书的时候出现时间校验失败!打开手机的设置,发现手机上的时间居然是好几年前。。。然后,调整好手机时间即可正常下载。
不过这种解决方式很死板,怎么可能让用户这么作呢!!!
有几位大牛提供了解决方案:
http://my.oschina.net/blackylin/blog/144136 http://www.eoeandroid.com/thread-161747-1-1.html
然后还有一篇关于https协议的好博文:
http://www.cnblogs.com/P_Chou/archive/2010/12/27/https-ssl-certification.html
相关文章推荐
- android:inputType参数类型说明
- android制作圆角button
- android 实践-2015/09/09
- Android应用安全防御
- Android应用启动闪黑屏
- Android中调用系统相机、系统相册来获取图片,并裁剪图片。
- 【小知识点总结】android:windowSoftInputMode属性详解 和 按back键直接退出Activity,不关闭软键盘的问题
- android ViewPager OnPageChangeListener滑动事件讲解
- lambda 用法及其在Android Studio 中的配置方法
- Android 5.1 wifi 密码掉电后丢失解决
- Android开发之多级下拉列表菜单实现(仿美团,淘宝等)
- Android VerticalViewPager
- AndroidStudio如何导入github项目
- Android开发环境搭建
- android 代码设置progressBar 颜色
- Android中服务管理相关流程getSystemService
- Android高亮标红指定字段
- [Android] 字体使用dp单位避免设置系统字体大小对排版的影响
- android Activity 自动弹出键盘解决方案
- javah 找不到 Android 系统类