use of org.parosproxy.paros.network.SSLConnector in project zaproxy by zaproxy.
the class OptionsParamCertificate method setActiveCertificate.
public void setActiveCertificate() {
ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
if (sslFactory instanceof SSLConnector) {
SSLConnector ssl = (SSLConnector) sslFactory;
ssl.setActiveCertificate();
}
}
use of org.parosproxy.paros.network.SSLConnector in project zaproxy by zaproxy.
the class OptionsParamCertificate method setEnableCertificate.
public void setEnableCertificate(boolean enabled) {
ProtocolSocketFactory sslFactory = Protocol.getProtocol("https").getSocketFactory();
if (sslFactory instanceof SSLConnector) {
SSLConnector ssl = (SSLConnector) sslFactory;
ssl.setEnableClientCert(enabled);
setUseClientCert(enabled);
}
}
Aggregations