Validates X.509 certificates and paths; forked from wbond/certvalidator
Actively maintained. Last release 6 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install pyhanko-certvalidatorcertvalidator
This library started as a fork of wbond/certvalidator with patches for pyHanko, but has since diverged considerably from its parent repository.
GitHub issues are disabled on this repository. Bug reports regarding this library should be submitted to the pyHanko issue tracker. Similarly, questions regarding this library's usage can be asked in the pyHanko discussion forum.
pyhanko-certvalidator is a Python library for validating X.509 certificates paths. It supports various
options, including: validation at a specific moment in time, whitelisting and revocation checks.
Features
- X.509 path building
- X.509 basic path validation
- Signatures
- RSA (including PSS padding), DSA, ECDSA and EdDSA algorithms.
- Name chaining
- Validity dates
- Basic constraints extension
- CA flag
- Path length constraint
- Key usage extension
- Extended key usage extension
- Certificate policies
- Policy constraints
- Policy mapping
- Inhibit anyPolicy
- Failure on unknown/unsupported critical extensions
- Signatures
- Blacklisting hash algorithms
- Revocation checks
- CRLs
- Indirect CRLs
- Delta CRLs
- OCSP checks
- Delegated OCSP responders
- Disable, require or allow soft failures
- Caching of CRLs/OCSP responses
- CRLs