<?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: Does Splunk for NetWitness support SSL access to the Rest API? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67371#M4166</link>
    <description>&lt;P&gt;Makes sense, as I am able to do this just fine...&lt;/P&gt;

&lt;P&gt;curl -u user:pass --tls --insecure -vv "&lt;A href="https://netwitness_server.foo.bar:50103/sdk"&gt;https://netwitness_server.foo.bar:50103/sdk&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;msg=summary&amp;amp;id1=0&amp;amp;id2=0&amp;amp;size=2000&amp;amp;force-content-type=text/plain"&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2012 20:33:07 GMT</pubDate>
    <dc:creator>rgonzale6</dc:creator>
    <dc:date>2012-02-13T20:33:07Z</dc:date>
    <item>
      <title>Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67365#M4160</link>
      <description>&lt;P&gt;We have a netwitness box which has its Rest interface on an SSL URL.   Does the Splunk for NetWitness app support SSL URLs.&lt;/P&gt;

&lt;P&gt;Can you specify an https URL?&lt;/P&gt;

&lt;P&gt;top_level_url=&lt;A href="https://servername:50104/" target="_blank"&gt;https://servername:50104/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks, Paul&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67365#M4160</guid>
      <dc:creator>pauln75</dc:creator>
      <dc:date>2020-09-28T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67366#M4161</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;

&lt;P&gt;I haven't tested it but it should. The app uses Python's urllib2 library that has support for HTTPS too.&lt;/P&gt;

&lt;P&gt;Is it not working for you? I would expect it to be supported and if not I will definitely look at fixing it.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 12:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67366#M4161</guid>
      <dc:creator>rataide</dc:creator>
      <dc:date>2012-02-08T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67367#M4162</link>
      <description>&lt;P&gt;I'd be interested as well.  Out of the box I get this error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2012-Feb-08 21:33:10 - ERROR: &amp;lt;urlopen error [Errno 8] _ssl.c:508: EOF occurred in violation of protocol&amp;gt;
2012-Feb-08 21:33:10 - ERROR: Couldn't execute summary query. Existing...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2012 21:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67367#M4162</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2012-02-08T21:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67368#M4163</link>
      <description>&lt;P&gt;I will have a look at it as soon as possible.&lt;/P&gt;

&lt;P&gt;Thank you for the feedback,&lt;/P&gt;

&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 22:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67368#M4163</guid>
      <dc:creator>rataide</dc:creator>
      <dc:date>2012-02-08T22:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67369#M4164</link>
      <description>&lt;P&gt;Hey Rui,&lt;/P&gt;

&lt;P&gt;I get the exact msgs as rgonzale6.  Thanks for the help.&lt;/P&gt;

&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2012 19:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67369#M4164</guid>
      <dc:creator>pauln75</dc:creator>
      <dc:date>2012-02-10T19:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67370#M4165</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Quick update! This is definitely an issue, I just confirmed it on my end too.&lt;/P&gt;

&lt;P&gt;It's to do with the negotiation of SSL, the server only accepts TLSv1 and the client keeps trying to negotiate SSLv2. &lt;/P&gt;

&lt;P&gt;I'm looking into it. Apologies for the inconvenience.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 18:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67370#M4165</guid>
      <dc:creator>rataide</dc:creator>
      <dc:date>2012-02-13T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67371#M4166</link>
      <description>&lt;P&gt;Makes sense, as I am able to do this just fine...&lt;/P&gt;

&lt;P&gt;curl -u user:pass --tls --insecure -vv "&lt;A href="https://netwitness_server.foo.bar:50103/sdk"&gt;https://netwitness_server.foo.bar:50103/sdk&lt;/A&gt;?&lt;/P&gt;

&lt;P&gt;msg=summary&amp;amp;id1=0&amp;amp;id2=0&amp;amp;size=2000&amp;amp;force-content-type=text/plain"&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2012 20:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67371#M4166</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2012-02-13T20:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67372#M4167</link>
      <description>&lt;P&gt;Thank you for bringing this issue to my attention.&lt;/P&gt;

&lt;P&gt;After looking into the issue, the problem lies, as mentioned in the comments, in the fact that Python's default urllib2 and SSL libraries are hard-coded to only negotiate SSLv23 with servers, however in order to be FIPS compliant the NW services only accept TLS connections.&lt;/P&gt;

&lt;P&gt;The main reason to go with default/existing libraries was to avoid users having to install additional packages under Splunk's Python distribution and therefore making the deployment of this app easier. I can definitely look at other options but that will force code changes and the need to install additional Python libraries under Splunk, not impossible but not trivial either.&lt;/P&gt;

&lt;P&gt;There is a &lt;STRONG&gt;major hack&lt;/STRONG&gt; that will solve the issue but one that most, me included, would rather not use. Simply &lt;STRONG&gt;change the hard-coded value&lt;/STRONG&gt; from &lt;STRONG&gt;SSLv23&lt;/STRONG&gt; to &lt;STRONG&gt;TLSv1&lt;/STRONG&gt; on your SSL module/library in Splunk's Python distribution. Make sure you save a backup copy of the file before you make any changes! &lt;/P&gt;

&lt;P&gt;The gory details: &lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;CODE&gt;Filename: $SPLUNK_HOME/lib/python2.7/ssl.py&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Line: 365&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Function: wrap_socket&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;Change: ssl_version=PROTOCOL_SSLv23 to ssl_version=PROTOCOL_TLSv1&lt;/CODE&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
My initial tests show that Splunk continues to work and &lt;CODE&gt;splunkd&lt;/CODE&gt; supports TLSv1 so that shouldn't cause any major problems.&lt;/P&gt;

&lt;P&gt;I will look at possible alternatives and please bare in mind that any Splunk upgrade can potentially break this hack. I will also note on the README and App page that SSL is currently &lt;EM&gt;not supported&lt;/EM&gt; by Python and will redirect other users to this answer.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67372#M4167</guid>
      <dc:creator>rataide</dc:creator>
      <dc:date>2012-02-14T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk for NetWitness support SSL access to the Rest API?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67373#M4168</link>
      <description>&lt;P&gt;Success!  Worked perfectly for me.  Thanks for the follow-up!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 22:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Does-Splunk-for-NetWitness-support-SSL-access-to-the-Rest-API/m-p/67373#M4168</guid>
      <dc:creator>rgonzale6</dc:creator>
      <dc:date>2012-02-15T22:47:37Z</dc:date>
    </item>
  </channel>
</rss>

