TrustManager的不安全实施

问题描述:

我试图在Google Play上发布应用,但我收到一封包含此错误消息的电子邮件:Vulnerability TrustManager,包含TrustManager不安全实现的应用。TrustManager的不安全实施

要正确处理SSL证书验证,请在自定义X509TrustManager接口的checkServerTrusted方法中更改您的代码,以便在服务器提供的证书不符合您的期望时引发CertificateException或IllegalArgumentException。我正在使用这些库在我的应用程序中:编译'com.squareup.picasso:picasso:2.5.2'编译'com.squareup.retrofit2:翻新:2.0.1'编译'com.squareup.retrofit2:编译com.squareup.retrofit2:编译com.squareup.retrofit2:编译com.squareup.retrofit2:转炉GSON:2.0.0' 编译‘com.squareup.okhttp3:okhttp:3.3.1’

你能不能给我一个电缆来解决这个问题, 在此先感谢

+0

你检查开发者控制台?这应该告诉你哪些类正在被标记。 – Antimony

我发现这个问题,它PayPal_MPL.jar是在Google Play上阻止提交的。

此链接可以解决这个问题: https://github.com/paypal/sdk-packages/issues/72

+0

上次真的救了我的屁股 - 应用程序获得批准,因此我必须说“谢谢”;这次,用一个固定的MPL,我得到了同样的错误,并且总共有0个想法为什么会发生这种情况。 –