Utilities that assist with trust relationship checking of X.509 Certificates for various end-user devices with disparate root trust stores.
Project description
tlstrust
Utilities that assist with trust relationship checking of X.509 Certificates for various end-user devices with disparate root trust stores.
Documentation
In your app you can:
import os
from pathlib import Path
from OpenSSL.crypto import FILETYPE_ASN1
from tlstrust import TrustStore
der = Path(os.path.join(os.path.dirname(__file__), "cert.der")).read_bytes()
trust_store = TrustStore()
print(trust_store.is_trusted(FILETYPE_ASN1, der))
Change Log
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tlstrust-0.0.1.tar.gz
(21.6 kB
view hashes)
Built Distribution
Close
Hashes for tlstrust-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ed22f5f82ccf8b0902381d1fffd52b0b8d9f883fbe4040f4d1db7c6f0b36c93 |
|
MD5 | 9314fe831798b782dda941b759c774ab |
|
BLAKE2b-256 | 695dd72d966fcbcb83f7f59ec009e97ebd5c88419809dc3f8e652a810524f8d5 |