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