Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

x509-validator

WARNING: This has never received any sort of security review, don't use it.

This library is a pure-Python implementation of X.509 certificate path building and validation, built on top of pyca/cryptography.

Usage

from cryptography import x509

from validator import X509Validator, ValidationContext

validator = X509Validator([list-of-trusted-x509-certificates])
validator.validate(
    leaf_certificate
    ValidationContext(
        name=x509.DNSName(hostname),
        extra_certs=[list-of-intermediate-x509-certificates],
        extended_key_usage=x509.ExtendedKeyUsageOIDs.SERVER_AUTH,
    )
)

Will return the built chain on success, or raise an x509.ValidationError on failure.

Work in progress

See the issue tracker for things that are currently known to be unimplemented (seek existential assistance for things that are not known to be unimplemented).

About

A pure-Python x509 validation library based on pyca/cryptography

Resources

Releases

No releases published

Packages

No packages published

Languages