We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2968934 + 7de566c commit 8367148Copy full SHA for 8367148
splunk/src/main/java/com/splunk/HttpService.java
@@ -558,8 +558,12 @@ public static SSLSocketFactory getSSLSocketFactory() {
558
return HttpService.sslSocketFactory;
559
}
560
561
- public static void setValidateCertificates(boolean validateCertificates) {
562
- HttpService.validateCertificates = validateCertificates;
+ public static void setValidateCertificates(boolean validateCertificate) {
+ // update the SSL_SOCKET_FACTORY if validateCertificates flag is changed
563
+ if (validateCertificates != validateCertificate) {
564
+ validateCertificates = validateCertificate;
565
+ sslSocketFactory = createSSLFactory();
566
+ }
567
568
569
public static SSLSocketFactory createSSLFactory() {
0 commit comments