-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot initialize openssl bindings #6818
Comments
Please provide instructions for reproducing -- we test against OpenSSL 3.0.1 in CI so this is known to work. |
I can give you a full reproducer but you'll spend a while building stuff as we bootstrap rust and gcc. Is there anything obvious I can poke at myself? strace shows it's loading the right |
OpenSSL 3.0 uses external shared libraries to provide cryptographic primitives. Did you build OpenSSL 3.0 with special flags to disable dynamic loading or are the crypto providers missing? |
Here's how we build in CI:
Has this previously worked on other versions of OpenSSL, or is this a fresh setup? |
Fresh setup, we've just upgraded to 36 from 3.3.2 |
Ah, it looks like we're not installing the legacy provider for some reason. That might be a problem. |
That's it. Cryptography loads the legacy and the default provider. #6809 might change it. |
We have an interesting build environment and it was looking in the wrong place for the providers, so couldn't load the legacy provider. Thanks for the hint @tiran. |
We've built cryptography 36.0.1 against OpenSSL 3.0.1 but get the following error. It's reproducible with a minimal test case:
cryptography.exceptions.InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this.
([_OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=126615813, lib=15, reason=786693, reason_text=b'error:078C0105:common libcrypto routines::init fail')])
The text was updated successfully, but these errors were encountered: