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

SSL certificates on brew-installed Python? #86

Open
jonkeane opened this issue Sep 20, 2022 · 0 comments
Open

SSL certificates on brew-installed Python? #86

jonkeane opened this issue Sep 20, 2022 · 0 comments

Comments

@jonkeane
Copy link
Contributor

jonkeane commented Sep 20, 2022

I've run into an issue a few times where datalogistik is unable to access certificates on brew-installed python:

ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)

It's similer to https://stackoverflow.com/questions/42098126/mac-osx-python-ssl-sslerror-ssl-certificate-verify-failed-certificate-verify?_gl=1*11zkby9*_ga*OTcyMDU0NDQwLjE2NjM2MDYxNTY.*_ga_S812YQPLT2*MTY2MzYwNjE1Ni4xLjEuMTY2MzYwNjE3NS4wLjAuMA..

I ended up resolving this personally by making sure certifi is installed and then setting SSL_CERT_FILE to point to that cert (e.g. SSL_CERT_FILE=$(python -c 'import certifi; print(certifi.where())')

What's best practice here? Is this something we should document? Have datalogistik do when it detects it's in this circumstance?

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

1 participant