HttpClient 中ssl访问的问题
直接做如下改动
HttpClient client = new HttpClient();
GetMethod redirect = new GetMethod("https://127.0.0.1");
client.executeMethod(redirect);
提示:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate。
不知道怎么样将证书导入。难道一定需要手工导入?那不是访问不同的网站很麻烦?