You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script fails with error SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
It's caused by the rootCA management mechanism ( https://bugs.python.org/issue36011 )
Solution
install certifi (mozilla rootCA project https://github.com/certifi/python-certifi ) with pip ( python -m pip install certifi ) or include certifi in the requirements.txt file
Context (Environment)
Windows 10
The text was updated successfully, but these errors were encountered:
Editing the urllib.request.urlopen(repo_url) to include the CA from certifi did the trick.
The line with this on then looked like this
with urllib.request.urlopen(repo_url, cafile='C:\Users\Administrator\yara\lib\site-packages\certifi\cacert.pem') as response, open("./dbs/%s" % filename, 'wb') as out_file:
Expected Behavior
Successful build of local goodware database.
Current Behavior
Script fails with error SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
It's caused by the rootCA management mechanism ( https://bugs.python.org/issue36011 )
Solution
install certifi (mozilla rootCA project https://github.com/certifi/python-certifi ) with pip (
python -m pip install certifi
) or include certifi in the requirements.txt fileContext (Environment)
Windows 10
The text was updated successfully, but these errors were encountered: