How to Update CA certificates for python on macOS
Long time ago(I did not write it down due to my procrastination), I run the same python code in my server and in my macOS. Both version of python are python3.13.1. But my macOS always raise error as below.
1 | ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1018) |
After consult with ChatGPT, I got a resolution, which is upgrading your CA certificates for Python.
1 | /Applications/Python\ 3.13/Install\ Certificates.command |