I need to use TLS client certs to connect to Splunk REST API.
It seems this is not possible out of the box with client.connet() as per the docs here: docs.splunk.com/DocumentationStatic/PythonSDK/1.6.5/client.html#splunklib.client.connect - there is no cert/key param.
Is it somehow possible to use TLS client certs with the Splunk Python SDK ?
As per my knowledge (I am not at advanced level of python) in above script six.moves.http_client.HTTPSConnection is using httplib module which has key_file and cert_file parameter so you can use those parameter for TLS connections.
Help on class HTTPSConnection in splunklib.six.moves.http_client:
splunklib.six.moves.http_client.HTTPSConnection = class HTTPSConnection(HTTPConnection)
| This class allows communication via SSL.
| Methods defined here:
| __init__(self, host, port=None, key_file=None, cert_file=None, strict=None, timeout=<object object>, source_address=None, context=None, check_hostname=None)
| Connect to a host on a given (SSL) port.