前段时间在google市场上面更新APP,解决被拒了。
google给出的解决方案是
最后我的解决方法是
public void checkServerTrusted(X509Certificate[] chain, String authType)
throws CertificateException {
try {
chain[0].checkValidity();
} catch (Exception e) {
throw new CertificateException("Certificate not valid or trusted.");
}
}
好像过不了多久google就会完全拒绝使用了X509TrustManager的APP了,所以希望大家尽早替换。