Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create/update goodware db on windows (SSL verify fail) #30

Open
5kuby opened this issue Jan 25, 2021 · 2 comments
Open

Unable to create/update goodware db on windows (SSL verify fail) #30

5kuby opened this issue Jan 25, 2021 · 2 comments

Comments

@5kuby
Copy link

5kuby commented Jan 25, 2021

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 file

Context (Environment)

Windows 10

@whichbuffer
Copy link

You may need to add Certificate from https://www.bsk-consulting.de web page into your Trusted Root certs. This helped me.

@JoeDibley
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants