Jmter 双向认证

javax.net.ssl.trustStore=C:\\Users\\john\\Desktop\\apache-jmeter-3.0\\licenses\\key\\ca.store
javax.net.ssl.keyStore=C:\\Users\\john\\Desktop\\apache-jmeter-3.0\\licenses\\key\\client.p12
import org.apache.jmeter.util.SSLManager;
System.setProperty("javax.net.ssl.keyStore", "C:\\Users\\john\\Desktop\\apache-jmeter-3.0\\licenses\\key\\client.p12");
System.setProperty("javax.net.ssl.keyStorePassword", "111111");
System.setProperty("javax.net.ssl.trustStore", "C:\\Users\\john\\Desktop\\apache-jmeter-3.0\\licenses\\key\\ca.store");
SSLManager.reset();

SSLManager.getInstance();

 
posted on 2021-11-09 17:51  筑梦小小屋  阅读(156)  评论(0编辑  收藏  举报