Re: [问题] Android 7.0 https无法连线的问题

楼主: benedict76 (ben)   2017-03-14 14:08:27
我有遇过Android m可以但是在N不行,
后来发现N把RC4 cipher suites disable,
结果我连的server要的cipher suite默认都被
关掉,所以在我连线的时候,在sslsocket
哪边setenabledciphersuites,传
getsupportedciphersuites()进去,后来就成
功连线,您可以试试看。
※ 引述《joycece (joycece)》之铭言:
: 我也遇上了类似的问题
: 在Android 5 & 6的 手机上可以正常SSL连线(TLS1.2)
: 但在Android 7.1.1的手机就发生以下错误
: javax.net.ssl.SSLHandshakeException:
: java.security.cert.CertPathValidatorException:
: Trust anchor for certification path not found.
: 想请问是否能够给个方向怎样去修正或避免这个问题发生?
: 谢谢
: ※ 引述《sana113821 (蜂蜜红茶)》之铭言:
: : 在越来越多7.0装置出现后出现了这个问题
: : 使用https连线却出现错误导致无法连线
: : 看了官方文件后发现7.0对于这部分有做了修改
: : 但不太了解具体的作法
: : 其实自己对于这个不太熟悉
: : 希望各位大大给个方向
: : 谢谢
: : 错误如下
: : W/System.err:javax.net.ssl.SSLHandshakeException: Connection closed by peer

Links booklink

Contact Us: admin [ a t ] ucptt.com