'PyPi Upload - unable to get local issuer certificate (_ssl.c:...)

While trying to update a project on PyPi, which I just posted first version last night just fine, I'm now getting the following error:

...
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>

I know if this was a Python error, its easy to fix but this one is coming from _ssl.c.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source