Closed aarontraynor closed 10 months ago
Hi @aarontraynor
Thanks for raising this issue.
The latest version of pyOpenSSL - version 23.3.0 (2023-10-25) has removed support for OpenSSL.crypto.load_pkcs12, which is causing the build issue: AttributeError: module 'OpenSSL.crypto' has no attribute 'load_pkcs12' As a quick fix, we have restricted pyOpenSSL version to the previous version 23.2.0 for which this oauth signer library works. Refer: 23.3.0 (2023-10-25) https://pypi.org/project/pyOpenSSL/ https://github.com/pyca/pyopenssl/pull/1223/files
This issue has been addressed in the latest release v1.7.0.
Closing this thread.
Bug Report Checklist
Description When installing mastercard-oauth-signer, it pulls the latest version of cryptography as a dependency. 41.0.5 (released 24-Oct-2023) breaks the OAuth signer.
To Reproduce
Expected behavior The code snippet provided should return a string containing the signing key.
Screenshots N/A
Additional context Downgrading to
cryptography@41.0.4
resolves the issue.Related issues/PRs N/A
Suggest a fix/enhancement It seems that
OpenSSL.crypto.load_pkcs12
points to the Python interface rather than the concrete implementation of OpenSSL when usingmastercard-oauth-signer@1.6.1
withcryptography@41.0.5
.