5 ms·
`Cryptography` is not a Python stdlib: try: from cryptography import x509 from cryptography.hazmat.primitives import hashes from cryptography.x50
by winstonwinston 21d ago
`Cryptography` is not a Python stdlib:
try:
from cryptography import x509
from cryptography.hazmat.primitives import hashes
from cryptography.x509.oid import NameOID
except ImportError: # pragma: no cover
sys.exit("missing dependency: pip install cryptography")
Then it goes on with a subprocess for openssl for a case that `cryptography` package does not handle.
Why not submit issue with `cryptography` project to get it fixed if it is a problem that needs fixing?
- westurner 20d agoWhich package to send a PR to (to fix this for everyone else, too)? It sounds like actually the bug is in the ASN.1 parser which is written in Rust? Add test cases. And then fuzz around this with e.g. cargo-fuzz