Security

How to connect the splunk server using java-sdk? i got the "ssl error" when i connect the server like the example that the api gave.

yizezhong
New Member

Exception in thread "main" java.lang.RuntimeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at com.splunk.HttpService.send(HttpService.java:371)
at com.splunk.Service.send(Service.java:1280)
at com.splunk.HttpService.post(HttpService.java:272)
at com.splunk.Service.login(Service.java:1111)
at com.splunk.Service.login(Service.java:1091)
at com.splunk.Service.connect(Service.java:185)
at com.chinamoney.splunk.test.SplunkLinkDemo.main(SplunkLinkDemo.java:29)
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
at sun.security.ssl.Handshaker.activate(Unknown Source)
at sun.security.ssl.SSLSocketImpl.kickstartHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.splunk.HttpService.send(HttpService.java:365)
... 6 more

Tags (3)
0 Karma

Damien_Dallimor
Ultra Champion

I suggest you update your Splunk Java SDK to the latest release that has support for TLS. (SSL is now disabled by default in the JRE)

0 Karma

acharlieh
Influencer

Are you using Java 8? If so, this seems to be a duplicate question of: http://answers.splunk.com/answers/209379/no-appropriate-protocol-protocol-is-disabled-or-ci.html

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...