<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why am I getting error &amp;quot;Unrecognized SSL message, plaintext connection?&amp;quot; trying to connect to Splunk with the Java REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187369#M37451</link>
    <description>&lt;P&gt;Host name was wrong, Thanks for help guys.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Aug 2015 06:17:10 GMT</pubDate>
    <dc:creator>monanimihir</dc:creator>
    <dc:date>2015-08-28T06:17:10Z</dc:date>
    <item>
      <title>Why am I getting error "Unrecognized SSL message, plaintext connection?" trying to connect to Splunk with the Java REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187366#M37448</link>
      <description>&lt;P&gt;I am trying to connect with Splunk. It is accessible from the web browser, but not with Java REST API.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           connectionArgs.put("host", "splunk-ui");
    connectionArgs.put("username", "username");
    connectionArgs.put("password", "passwd");
    connectionArgs.put("port", 8443);
    connectionArgs.put("scheme", "http");

    Service splunkService = Service.connect(connectionArgs);
    System.out.println("Auth Token : " + splunkService.getToken());
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the error: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Unrecognized SSL message, plaintext connection?" at line 'Service splunkService = Service.connect(connectionArgs);'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am not able to understand the error.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 09:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187366#M37448</guid>
      <dc:creator>monanimihir</dc:creator>
      <dc:date>2015-08-27T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unrecognized SSL message, plaintext connection?" trying to connect to Splunk with the Java REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187367#M37449</link>
      <description>&lt;P&gt;Port &lt;CODE&gt;8443&lt;/CODE&gt; is typically reserved for &lt;CODE&gt;HTTPS&lt;/CODE&gt; connections, yet you defined your scheme as &lt;CODE&gt;http&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Change it like this and try again:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; connectionArgs.put("scheme","https");
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm sure you will also have to do some Java-nasty overrides for the SSL cert to get it to accept the default certificates. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187367#M37449</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-08-27T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unrecognized SSL message, plaintext connection?" trying to connect to Splunk with the Java REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187368#M37450</link>
      <description>&lt;P&gt;Unless you have changed your system default settings you should be connecting to port 8089 over https to access the Splunk REST endpoints.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187368#M37450</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-08-27T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unrecognized SSL message, plaintext connection?" trying to connect to Splunk with the Java REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187369#M37451</link>
      <description>&lt;P&gt;Host name was wrong, Thanks for help guys.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2015 06:17:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unrecognized-SSL-message-plaintext/m-p/187369#M37451</guid>
      <dc:creator>monanimihir</dc:creator>
      <dc:date>2015-08-28T06:17:10Z</dc:date>
    </item>
  </channel>
</rss>

