Error with Certifcates in bundled python

Hi All

I have a script that runs on complie. This is running but for some reason the version of python incudled with platform IO is giving an SSL error:

.platformio/python3/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

Googling this the fix seems to run the

Install Certificates.command

I cannot seem to find this.

Any suggestions?

Do you have antivirus software installed that has some “Web ‘Security’” feature that intercepts your TLS/SSL connections? What’s the full backtrace?

Hi

This works fine on the same machine with my development Python3 version.

The issue is caused by the requests lib.

This is know issue and there is a fix on the Mac for this but I cannot locate the way to implment this on the version of Pyhton shipped with PIO.

JT

Can you open an issue at Issues · platformio/platformio-core · GitHub with the full backtrace and a reference to the issue you mean?

Done

1 Like