When I use the Vale Python package I am getting the unfortunate error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
Fixing this requires finding the OS or Python install certificate bundle and updating it, which is hard for less technical users. If the vale self installer used the certifi package instead, the fix is as simple and platform independent as
The code chane is small too:
>>> import certifi
>>> certifi_context = ssl.create_default_context(cafile=certifi.where())
>>> urlopen("...", context=certifi_context)
When I use the Vale Python package I am getting the unfortunate error:
Fixing this requires finding the OS or Python install certificate bundle and updating it, which is hard for less technical users. If the vale self installer used the
certifipackage instead, the fix is as simple and platform independent asThe code chane is small too: