ssl java.security.cert.CertPathValidatorException:无法验证证书

nkkqxpd9  于 5个月前  发布在  Java
关注(0)|答案(2)|浏览(100)

在android 4.1.2我没有得到任何错误,但android 1.6生成主题中提到的异常。我已经通过https://www.ssllabs.com/ssltest/测试了ssl证书,它是确定的。完整的异常消息:
java.security.cert.CertPathValidatorException:无法验证证书:当前时间:Mon Jul 28 14:20:43 GMT+02:00 2014,过期时间:Tue Mar 18 17:43:41 GMT+01:00 2014
有没有可能是Android 1.6造成的?

1hdlvixo

1hdlvixo1#

我在使用https(安全)连接到服务器时遇到了这个问题。
尝试将设备日期设置为当前日期。

tjjdgumg

tjjdgumg2#

在我的设备上设置正确的系统时间,它就可以工作了。
转到Settings > System > Date & Time >将其设置为Automatic date & time

相关问题