Solved Python SSL error

I have a Python API that is trying to communicate with my server and I am getting this error:

Error: Communication with Server failed. (<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (ssl.c:661)>)

Is there a way to fix this? Any help would be appreciated. Thanks.

@swinn Is there any word on a solution to this issue? Any help would be greatly appreciated. Thanks.

Hi @Swinn,

I can confirm the issue, this is a known issue on Mac, and this is currently being worked on.


@m_adam Is there any workaround?

Hi Swinn,

first I'd like to apologize for answering so lately. As announced here, the SDK Team was out of office for more than half of last week. Now, we try to work through the backlog as fast as possible.

This seems to be an issue only on macOS. It is currently being investigated and we hope to be able to provide a fix with one of the next service packs.


@a_block Cool. Thanks. 👍

Hi all,

is there an update on this? Some of my customers had trouble verifying their licenses and I pinpointed it to this error.
I can work around it by using this solution, which seems to create an unverified context:

Is this an acceptable solution for dealing with this issue?

What is the version of your customer, this should be fixed until S24 version.

Yes it's an Okish solution, best way would be to create the context as demonstrate in urllib2.urlopen fails on C4D for Mac

@m_adam Thanks Maxime, I'll check that out.
The customer was using R23.110