<?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: curl (35) error Rest API in Security</title>
    <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98297#M3218</link>
    <description>&lt;P&gt;Updated this with a different error. Does anyone know what "SSL3_GET_RECORD:wrong version number" means?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:40:11 GMT</pubDate>
    <dc:creator>zackh123</dc:creator>
    <dc:date>2020-09-28T12:40:11Z</dc:date>
    <item>
      <title>curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98296#M3217</link>
      <description>&lt;P&gt;When I try to run this command in REST API&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -vvv -u user:pass -d "search=savedsearch %22My%20Search%22" &lt;A href="https://myserver:80/servicesNS/user/search/search/jobs/export" target="test_blank"&gt;https://myserver:80/servicesNS/user/search/search/jobs/export&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get this error...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* About to connect() to myserver port 80 (#0)
*   Trying 1.1.1.1... connected
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS alert, Server hello (2):
* error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
* Closing connection #0
curl: (35) error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I edited some fields for my privacy. &lt;/P&gt;

&lt;P&gt;Does anyone know how to fix this? I'm rather new at Splunk and Rest API&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98296#M3217</guid>
      <dc:creator>zackh123</dc:creator>
      <dc:date>2012-10-22T14:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98297#M3218</link>
      <description>&lt;P&gt;Updated this with a different error. Does anyone know what "SSL3_GET_RECORD:wrong version number" means?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98297#M3218</guid>
      <dc:creator>zackh123</dc:creator>
      <dc:date>2020-09-28T12:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98298#M3219</link>
      <description>&lt;P&gt;The first thing I react to when reading your question is that you're trying to connect to an SSL enabled service on port 80. This is not a very common setup - 80 is usually reserved for regular HTTP services.&lt;/P&gt;

&lt;P&gt;Also, even if your Splunk instance's user web interface IS listening with SSL on port 80, the port you need to use for calling the REST API is the splunkd port, not the splunkweb port. The splunkd is by default 8089.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98298#M3219</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-22T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98299#M3220</link>
      <description>&lt;P&gt;But it is connecting to the server on port 80. When I switch it to 8089 it times out. Can you think of anything else?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98299#M3220</guid>
      <dc:creator>zackh123</dc:creator>
      <dc:date>2012-10-22T17:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98300#M3221</link>
      <description>&lt;P&gt;Sounds like firewall issues. I see that it is connecting on port 80, but like I said, unless you actually changed the splunkd port, port 80 is NOT the port you want to be connecting to.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:46:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98300#M3221</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-22T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98301#M3222</link>
      <description>&lt;P&gt;Hmm. How would I be able to fix a firewall problem if that is what's causing this?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:48:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98301#M3222</guid>
      <dc:creator>zackh123</dc:creator>
      <dc:date>2012-10-22T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98302#M3223</link>
      <description>&lt;P&gt;How to do that in your specific setup is beyond my knowledge my friend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; If you have access to the box and there's a local firewall on it blocking access to port 8089, then open a port there. If it's a matter of a firewall somewhere along the network path from your box to the Splunk server, you need to fix it there.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98302#M3223</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-22T17:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: curl (35) error Rest API</title>
      <link>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98303#M3224</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;For next users geting this problem after upgrade to splunk 6.2 or later, Splunk now allow only tls v1.2 as ssl version (&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.3/Security/SetyourSSLversion" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.3/Security/SetyourSSLversion&lt;/A&gt;&lt;/CODE&gt;).&lt;BR /&gt;
I had rest api from a late curl program, and had to update curl.&lt;BR /&gt;
Then the curl command must specify sslversion:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl --tlsv1.2 -k -vvv -u user:pass -d "search=savedsearch %22My%20Search%22" &lt;A href="https://myserver:80/servicesNS/user/search/search/jobs/export" target="test_blank"&gt;https://myserver:80/servicesNS/user/search/search/jobs/export&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;Olivier.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 08:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/curl-35-error-Rest-API/m-p/98303#M3224</guid>
      <dc:creator>o_calmels</dc:creator>
      <dc:date>2017-09-26T08:06:25Z</dc:date>
    </item>
  </channel>
</rss>

