Skip to content

Commit 700ed3b

Browse files
committed
Update HttpService.java
1 parent ab1ed1d commit 700ed3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunk/com/splunk/HttpService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ public void checkServerTrusted(X509Certificate[] certs, String authType) {
535535
};
536536
try {
537537
String contextStr = "";
538-
if(HttpService.sslSecurityProtocol != null){
539-
contextStr = HttpService.sslSecurityProtocol.toString().contains("SSL")?"SSL":"TLS";
538+
if(sslSecurityProtocol != null){
539+
contextStr = sslSecurityProtocol.toString().contains("SSL")?"SSL":"TLSv1.2";
540540
}else if(useTLS||System.getProperty("java.version").compareTo("1.8")>=0){
541541
contextStr = "TLSv1.2";
542542
}else{

0 commit comments

Comments
 (0)