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

Add option to replace default OpenSSL certificates with those from certifi Python package #86

Open
baagaard-usgs opened this issue Jan 17, 2025 · 0 comments
Assignees
Labels

Comments

@baagaard-usgs
Copy link
Contributor

When building macOS binaries, we run into the problem that the default OpenSSL certificates may not include all of those in the Python certifi package. A good way to fix this is to replace the default OpenSSL certificates with those from the Python certifi package. This is what is done for the macOS binary from Python.org.

import ssl
import certifi

openssl_cafile = ssl.get_default_verify_paths().openssl_cafile
certifi_cafile = certifi.where()

# Copy `certifi_cafile` to `openssl_cafile`
@baagaard-usgs baagaard-usgs self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant