TRUST_STORE_PWD); 设置完成后就可以进行访问对应服务器
设置证书进行访谒或被访谒操纵
String keyStore = “keyStore文件路径”; String KEY_STORE_PWD = "1234"; String KEY_STORE_TYPE = "PKCS12";//.p12文件类型 String trustStore =“trustStore文件路径”; String TRUST_STORE_PWD = "1234"; //设置客户端证书 System.setProperty("javax.net.ssl.keyStore", keyStore); System.setProperty("javax.net.ssl.keyStorePassword", KEY_STORE_PWD); System.setProperty("javax.net.ssl.keyStoreType", KEY_STORE_TYPE); //设置处事器证书 System.setProperty("javax.net.ssl.trustStore", trustStore); System.setProperty("javax.net.ssl.trustStorePassword",TRUST_STORE_PWD);
设置完成后就可以进行访谒对应处事器。
Https:设置使用证书访谒Https
,温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/30583.html
- 上一篇: title: phpstorm激活码
- 下一篇:正文部分会有详细介绍