How to fix ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

I'm running a Python script that uses urllib3 to retrieve space weather data from the file, SpaceWeather-v1.2.txt, from https://ftp.agi.com/pub/DynamicEarthData/. This script has been working for some time until most recently. I'm now getting an error message:


ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)


I'm running on a MacPro (2019) under Mac OS X Ventura (13.3.1). As for Python, I'm running Python ver. 3.9.16 under the Anaconda distribution. The urllib3 version I'm running is 1.26.15.


I have no idea why this is happening all of a sudden let alone how to fix it.


Please advise.


Sam


P.S. - the traceback messages are below.




[Personal Information Edited by Moderator]


Mac Pro, macOS 13.3

Posted on May 18, 2023 2:12 PM

Reply

Similar questions

1 reply

May 25, 2023 7:20 AM in response to OrbitalMechanic

OrbitalMechanic wrote:

I'm running a Python script that uses urllib3 to retrieve space weather data from the file, SpaceWeather-v1.2.txt, from https://ftp.agi.com/pub/DynamicEarthData/. This script has been working for some time until most recently. I'm now getting an error message:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)

I'm running on a MacPro (2019) under Mac OS X Ventura (13.3.1). As for Python, I'm running Python ver. 3.9.16 under the Anaconda distribution. The urllib3 version I'm running is 1.26.15.

I have no idea why this is happening all of a sudden let alone how to fix it.

Please advise.

Sam

P.S. - the traceback messages are below.

<Traceback and error log.log>


[Personal Information Edited by Moderator]




ref: Change the trust settings of a certificate in Keychain Access on Mac - Apple Support (IN)


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to fix ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.