SSL_ CERTIFICATE_VERIFY_FAILED
SSL: CERTIFICATE_VERIFY_FAILED
Introduction
The purpose of this Playbook is to provide a solution to a SSL: CERTIFICATE_VERIFY_FAILED error when starting Real-Time transcriptions.
The error usually occurs when starting a real-time session in Python and the error message looks like this:
…
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992
Procedures
This error occurs when certificates are not installed in the developer’s Python installation.
To fix this, Navigate to your Applications/Python 3.x/folder and double click the Install Certificates.command:

Resources
-
If the user does not have the Install Certificates.command file, they can create one and run it with the instructions from this StackOverflow post.
SSL certificate error
Plain Text
Copy
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py”, line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py”, line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py”, line 650, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File “/Users/mart/Code/AAI/rt/realtime.py”, line 29, in send_receive
async with websockets.connect(
File “/Users/mart/Code/AAI/rt/lib/python3.11/site-packages/websockets/legacy/client.py”, line 642, in __aenter__
return await self
^^^^^^^^^^
File “/Users/mart/Code/AAI/rt/lib/python3.11/site-packages/websockets/legacy/client.py”, line 659, in __await_impl_timeout__
return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py”, line 479, in wait_for
return fut.result()
^^^^^^^^^^^^
File “/Users/mart/Code/AAI/rt/lib/python3.11/site-packages/websockets/legacy/client.py”, line 663, in __await_impl__
_transport, _protocol = await self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py”, line 1098, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py”, line 1131, in _create_connection_transport
await waiter
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/sslproto.py”, line 577, in _on_handshake_complete
raise handshake_exc
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/sslproto.py”, line 559, in _do_handshake
self._sslobj.do_handshake()
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ssl.py”, line 979, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992