If i use scheme='https' , it return error below;
Traceback (most recent call last):
File "app_enable.py", line 10, in
main()
File "app_enable.py", line 5, in main
username='admin', password='changeme', scheme='https')
File "/usr/local/lib/python2.7/site-packages/splunk_sdk-1.6.4-py2.7.egg/splunklib/client.py", line 325, in connect
s.login()
File "/usr/local/lib/python2.7/site-packages/splunk_sdk-1.6.4-py2.7.egg/splunklib/binding.py", line 861, in login
cookie="1") # In Splunk 6.2+, passing "cookie=1" will return the "set-cookie" header
File "/usr/local/lib/python2.7/site-packages/splunk_sdk-1.6.4-py2.7.egg/splunklib/binding.py", line 1208, in post
return self.request(url, message)
File "/usr/local/lib/python2.7/site-packages/splunk_sdk-1.6.4-py2.7.egg/splunklib/binding.py", line 1225, in request
response = self.handler(url, message, **kwargs)
File "/usr/local/lib/python2.7/site-packages/splunk_sdk-1.6.4-py2.7.egg/splunklib/binding.py", line 1366, in request
connection.request(method, path, body, head)
File "/usr/local/lib/python2.7/httplib.py", line 1042, in request
self.send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 1082, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 844, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1263, in connect
server_hostname=server_hostname)
File "/usr/local/lib/python2.7/ssl.py", line 369, in wrap_socket
_context=self)
File "/usr/local/lib/python2.7/ssl.py", line 617, in __init_
self.do_handshake()
File "/usr/local/lib/python2.7/ssl.py", line 846, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL] EC lib (_ssl.c:726)
... View more