18
找不到Android SSL连接的信任锚
我正在尝试连接到运行Godaddy 256位SSL证书的IIS6框,但出现错误: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 一直试图确定是什么原因导致的,但现在还是空白。 这是我的联系方式: HttpsURLConnection conn; conn = (HttpsURLConnection) (new URL(mURL)).openConnection(); conn.setConnectTimeout(20000); conn.setDoInput(true); conn.setDoOutput(true); conn.connect(); String tempString = toString(conn.getInputStream());