2
我有下面的代碼使SSL工作,我HttpClient的連接,這樣Android和SSL - 檢查證書有效性
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("https",
SSLSocketFactory.getSocketFactory(), 443));
HttpParams params = new BasicHttpParams();
SingleClientConnManager mgr = new SingleClientConnManager(params, schemeRegistry);
HttpClient client = new DefaultHttpClient(mgr, params);
然而,這實際上驗證證書?似乎應該有更多。