Security

Whay am I getting a Handshake_failure with JavaSDK when the scheme is TLS?

ssubbiah001
Explorer

I have a java application that uses SplunkSDK to connect to the splunk server over https. Recently the SSL was changed to TLS and since them I get the following exception
java.lang.RuntimeException: Received fatal alert: handshake_failure
at com.splunk.HttpService.send(HttpService.java:345)
at com.splunk.Service.send(Service.java:1268)
at com.splunk.HttpService.post(HttpService.java:243)
at com.splunk.Service.login(Service.java:1099)

Following is how I login to Splunk. What should the loginArgs.setScheme be set to now that we are using TLS? I couldn't find any documentation with Valid scheme names.
ServiceArgs loginArgs = new ServiceArgs();
loginArgs.setUsername(userName);
loginArgs.setPassword(passWord);
loginArgs.setHost(host);
loginArgs.setPort(Integer.parseInt(portNumber));
loginArgs.setScheme("https");

Tags (2)
0 Karma
1 Solution

ssubbiah001
Explorer

I was able to fix my errors by updating the splunk jar file to use TLS protocol.

http://answers.splunk.com/answers/210201/i-changed-splunk-from-using-sslv3-to-tlsv12-and-th.html

View solution in original post

0 Karma

ssubbiah001
Explorer

I was able to fix my errors by updating the splunk jar file to use TLS protocol.

http://answers.splunk.com/answers/210201/i-changed-splunk-from-using-sslv3-to-tlsv12-and-th.html

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...