SSL error: cannot create a client socket with a PROTOCOL_TLS_SERVER context
vedang122 opened this issue · 4 comments
vedang122 commented
Describe the bug
Encountered following error while using transmission.ping()
for okta
and azure_log_analytics
(only confirmed for these two):
Cannot connect to host trial-4512277.okta.com:443 ssl:<ssl.SSLContext object at 0x10b003d10> [Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:795)
To Reproduce
Steps to reproduce the behavior:
- I'm using python 3.11
- Install stix-shifter, stix-shifter-utils and stix-shifter-modules-okta using pip(default pip version given with python version download) in an environment
- Run following piece of code:
from stix_shifter.stix_transmission import stix_transmission
transmission = stix_transmission.StixTransmission(
"okta", connection, config)
transmission.ping()
Expected behavior
I expect ping to be successful.
Screenshots
N/A
Desktop (please complete the following information):
- OS: [e.g. iOS] MacOS 13.6.6
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22] Python 3.11
Additional context
N/A
vedang122 commented
Looking at the context it seems so, but it's still not fixed for 3.11 in that case.
pcoccoli commented
You're right; it's fixed but not in a release yet. @mdazam1942 any idea when the next release will be?
mdazam1942 commented
We are working on a release now. It should be available in a couple of days. closing this since its a duplicate