1 2 | keytool -import -noprompt -keystore cacerts -storepass changeit -alias yourEntry1 -file your.cer |
1 | keytool -delete -keystore cacerts -storepass changeit -alias yourEntry1 |
1 | GetMethod getMethod = new GetMethod("https://www.yourdomain.com"); |
1 2 | if(Security.getProvider("com.ibm.jsse.IBMJSSEProvider") == null) Security.addProvider(new IBMJSSEProvider()); |
1 2 | security.provider.1=sun.security.provider.Sun security.provider.2=com.ibm.crypto.provider.IBMJCE |
1 | Protocol myhttps = new Protocol("https", new MySecureProtocolSocketFactory (), 443); |
1 | Protocol.registerProtocol("https ", myhttps); |
1 | httpClient.getHostConfiguration().setProxy(hostName,port); |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |