<?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: splunklib client giving SSLError in Security</title>
    <link>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281149#M7556</link>
    <description>&lt;P&gt;Yes I did figure it out, but since the question was in moderation I wasn't able to delete it. Thanks though!!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 08:08:23 GMT</pubDate>
    <dc:creator>alnu</dc:creator>
    <dc:date>2016-07-27T08:08:23Z</dc:date>
    <item>
      <title>splunklib client giving SSLError</title>
      <link>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281147#M7554</link>
      <description>&lt;P&gt;I'm trying to make a basic connection with my local instance of splunk, but it's giving me a SSLError. Have setup splunk for the first time on my local system. Did try disabling ssl from a few config files but to no use. Missing something extremely basic here&lt;/P&gt;

&lt;P&gt;Splunk Version: 6.4.0&lt;BR /&gt;
Python Version(which came with Splunk): 2.7.11&lt;BR /&gt;
Python Version(SDK is using): 2.7.10 [Will it affect it?]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import splunklib.client as client
HOST = "localhost"
PORT = 8000
USERNAME = "admin"
PASSWORD = "changeme"
service = client.connect(host=HOST, port=PORT, username=USERNAME, password=PASSWORD)
print service.apps.list()
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Stacktrace:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Traceback (most recent call last):
  File "C:/Users/alnu/PycharmProjects/Splunk_Automate/test1.py", line 9, in &amp;lt;module&amp;gt;
    service = client.connect(host=HOST, port=PORT, username=USERNAME, password=PASSWORD)
  File "C:\Users\alnu\IdeaProjects\virtualenvs\splunk_venv\lib\site-packages\splunklib\client.py", line 321, in connect
    s.login()
  File "C:\Users\alnu\IdeaProjects\virtualenvs\splunk_venv\lib\site-packages\splunklib\binding.py", line 857, in login
    cookie="1") # In Splunk 6.2+, passing "cookie=1" will return the "set-cookie" header
  File "C:\Users\alnu\IdeaProjects\virtualenvs\splunk_venv\lib\site-packages\splunklib\binding.py", line 1201, in post
    return self.request(url, message)
  File "C:\Users\alnu\IdeaProjects\virtualenvs\splunk_venv\lib\site-packages\splunklib\binding.py", line 1218, in request
    response = self.handler(url, message, **kwargs)
  File "C:\Users\alnu\IdeaProjects\virtualenvs\splunk_venv\lib\site-packages\splunklib\binding.py", line 1357, in request
    connection.request(method, path, body, head)
  File "C:\Python27\Lib\httplib.py", line 1053, in request
    self._send_request(method, url, body, headers)
  File "C:\Python27\Lib\httplib.py", line 1093, in _send_request
    self.endheaders(body)
  File "C:\Python27\Lib\httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "C:\Python27\Lib\httplib.py", line 893, in _send_output
    self.send(msg)
  File "C:\Python27\Lib\httplib.py", line 855, in send
    self.connect()
  File "C:\Python27\Lib\httplib.py", line 1274, in connect
    server_hostname=server_hostname)
  File "C:\Python27\Lib\ssl.py", line 352, in wrap_socket
    _context=self)
  File "C:\Python27\Lib\ssl.py", line 579, in __init__
    self.do_handshake()
  File "C:\Python27\Lib\ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281147#M7554</guid>
      <dc:creator>alnu</dc:creator>
      <dc:date>2016-07-26T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: splunklib client giving SSLError</title>
      <link>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281148#M7555</link>
      <description>&lt;P&gt;I believe it's your port - you want to use the management port, which is typically 8089, but you can confirm by going to Settings -- Server Settings -- General Settings.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281148#M7555</guid>
      <dc:creator>kbarker302</dc:creator>
      <dc:date>2016-07-26T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: splunklib client giving SSLError</title>
      <link>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281149#M7556</link>
      <description>&lt;P&gt;Yes I did figure it out, but since the question was in moderation I wasn't able to delete it. Thanks though!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 08:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/splunklib-client-giving-SSLError/m-p/281149#M7556</guid>
      <dc:creator>alnu</dc:creator>
      <dc:date>2016-07-27T08:08:23Z</dc:date>
    </item>
  </channel>
</rss>

