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

Commit 1885dde

Browse files
author
Samuel Hassine
committed
[client] Log SSL verify
1 parent da2a51c commit 1885dde

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pycti/connector/opencti_connector_helper.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,12 +372,21 @@ def listen_stream(
372372

373373
# Get the last event ID with the "connected" event msg
374374
if url is not None and token is not None:
375+
ssl_verify = verify if verify is not None else True
376+
logging.info(
377+
"Starting listening stream events with SSL verify to: "
378+
+ str(opencti_ssl_verify)
379+
)
375380
messages = SSEClient(
376381
url + "/stream",
377382
headers={"Authorization": "Bearer " + token},
378-
verify=verify if verify is not None else True,
383+
verify=ssl_verify,
379384
)
380385
else:
386+
logging.info(
387+
"Starting listening stream events with SSL verify to: "
388+
+ str(self.opencti_ssl_verify)
389+
)
381390
messages = SSEClient(
382391
self.opencti_url + "/stream",
383392
headers={"Authorization": "Bearer " + self.opencti_token},

0 commit comments

Comments
 (0)