It looks then that your root certificates that validate our SSL certificates are expired on your computer.
They should normally be updated well before they expire through the OS updates.
To try and update the certificates manually, please follow these steps:
- For Windows 10, please check that you are on 19044 (21H2).
- To find out which version of Windows your device is running, press the Windows logo key + R, type
winver
in the Open box, and then select OK. - If it is lower than 19044, please run Windows Update to manually force any pending update
- To find out which version of Windows your device is running, press the Windows logo key + R, type
- If using Mac, run the script
Install Certificates.command
- You will find this script in the Applications folder, inside the Python 3.X folder
- For Windows/Mac/Linux
- Update Python library certifi (use pip or pip3 depending on your installation):
pip install --update certifi
pip3 install --update certifi
- Manually update the certificates by downloading the following files and installing them (double-click once they are downloaded)
- Update Python library certifi (use pip or pip3 depending on your installation):
- Reboot and try your code again
Comments
0 comments
Article is closed for comments.