com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time:

來源:互聯網
上載者:User

標籤:

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

com.android.org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: current time:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.