Hi @nachimistry thank you very much it works finally 🤗 but with SSL_VERIFY=False /OPT/splunk/bin/splunk cmd python3 -c "import ssl,certifi,urllib.request; ctx=ssl.create_default_context(cafile=certifi.where()); print(urllib.request.urlopen('https://ouraiurl/v1/models', context=ctx).status)"
Traceback (most recent call last):
File "/OPT/splunk/lib/python3.9/urllib/request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/OPT/splunk/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/OPT/splunk/lib/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/OPT/splunk/lib/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/OPT/splunk/lib/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/OPT/splunk/lib/python3.9/http/client.py", line 980, in send
self.connect()
File "/OPT/splunk/lib/python3.9/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/OPT/splunk/lib/python3.9/ssl.py", line 506, in wrap_socket
return self.sslsocket_class._create(
File "/OPT/splunk/lib/python3.9/ssl.py", line 1049, in _create
self.do_handshake()
File "/OPT/splunk/lib/python3.9/ssl.py", line 1318, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1143)
I tried adding on my test search head (in distributed environment) in splunk-launch.conf : SSL_CERT_FILE=/OPT/splunk/etc/auth/ourownpki/ca.crt : KO (same CA as litellm URL and search head) Please note I can see this in splunkd.log : 10-28-2026 11:31:10.675 +0100 ERROR PersistentScript [12893 PersistentScriptIo] - From {/OPT/splunk/bin/python3.9 /OPT/splunk/lib/python3.9/site-packages/splunk/persistconn/appserver.py}: WARNING Environment variable SSL_CERT_FILE is set to a non-existent path: /OPT/splunk/openssl/cert.pem. Removing it to prevent SSL errors. /OPT/splunk/openssl/cert.pem doesn't even exist. Thanks again for your help.
... View more