<?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: 4.3 breaks the python api searches in Security</title>
    <link>https://community.splunk.com/t5/Security/4-3-breaks-the-python-api-searches/m-p/53120#M1763</link>
    <description>&lt;P&gt;Try disabling SSL certificate checking in your httplib2 calls by setting &lt;CODE&gt;disable_ssl_certificate_validation=True&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;h = httplib2.Http(disable_ssl_certificate_validation=True)
# Instead of calling just httplib2.Http()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk 4.3 ships with a newer version of the httplib2 Python Module, which enables certificate validation by default. Setting &lt;CODE&gt;disable_ssl_certificate_validation&lt;/CODE&gt; to &lt;CODE&gt;True&lt;/CODE&gt; makes httplib2 act like it did in Splunk 4.2.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2012 04:05:28 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2012-01-18T04:05:28Z</dc:date>
    <item>
      <title>4.3 breaks the python api searches</title>
      <link>https://community.splunk.com/t5/Security/4-3-breaks-the-python-api-searches/m-p/53119#M1762</link>
      <description>&lt;P&gt;We have a python script that calls the splunk api on saved searches and writes data back to a file.&lt;/P&gt;

&lt;P&gt;With the 4.3 upgrade from 4.2 i get this error. Anyone know what this error is referring to? I know it has to do with certificates, but what went wrong?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;No handlers could be found for logger "splunk.clilib.cli_common"
Traceback (most recent call last):
  File "/home/appsmon/splunk/saved_search/tbb/exceptions/saved_search.py", line 216, in &amp;lt;module&amp;gt;
    headers={}, body=urllib.urlencode({'username':username, 'password':password}))[1]
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1419, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1171, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 1122, in _conn_request
    conn.connect()
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 890, in connect
    self.disable_ssl_certificate_validation, self.ca_certs)
  File "/opt/splunk/lib/python2.7/site-packages/httplib2/__init__.py", line 76, in _ssl_wrap_socket
    cert_reqs=cert_reqs, ca_certs=ca_certs)
  File "/opt/splunk/lib/python2.7/ssl.py", line 374, in wrap_socket
    ciphers=ciphers)
  File "/opt/splunk/lib/python2.7/ssl.py", line 134, in __init__
    ciphers)
ssl.SSLError: [Errno 185090050] _ssl.c:341: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2012 01:22:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/4-3-breaks-the-python-api-searches/m-p/53119#M1762</guid>
      <dc:creator>tven</dc:creator>
      <dc:date>2012-01-18T01:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: 4.3 breaks the python api searches</title>
      <link>https://community.splunk.com/t5/Security/4-3-breaks-the-python-api-searches/m-p/53120#M1763</link>
      <description>&lt;P&gt;Try disabling SSL certificate checking in your httplib2 calls by setting &lt;CODE&gt;disable_ssl_certificate_validation=True&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;h = httplib2.Http(disable_ssl_certificate_validation=True)
# Instead of calling just httplib2.Http()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk 4.3 ships with a newer version of the httplib2 Python Module, which enables certificate validation by default. Setting &lt;CODE&gt;disable_ssl_certificate_validation&lt;/CODE&gt; to &lt;CODE&gt;True&lt;/CODE&gt; makes httplib2 act like it did in Splunk 4.2.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 04:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/4-3-breaks-the-python-api-searches/m-p/53120#M1763</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2012-01-18T04:05:28Z</dc:date>
    </item>
  </channel>
</rss>

