Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit c2fd522

Browse files
committed
[client] Fix SSL certificate self-signed to be supported issue
1 parent d88f731 commit c2fd522

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pycti/api/opencti_api_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,13 @@ def fetch_opencti_file(self, fetch_uri, binary=False, serialize=False):
377377
:rtype: str or bytes
378378
"""
379379

380-
r = self.session.get(fetch_uri, headers=self.request_headers)
380+
r = self.session.get(
381+
fetch_uri,
382+
headers=self.request_headers,
383+
verify=self.ssl_verify,
384+
cert=self.cert,
385+
proxies=self.proxies
386+
)
381387
if binary:
382388
if serialize:
383389
return base64.b64encode(r.content).decode("utf-8")

0 commit comments

Comments
 (0)