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__), "cacert.der")).read_bytes()
trust_store = TrustStore(FILETYPE_ASN1, der)
print(trust_store.is_trusted())
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.1.0.tar.gz
(40.9 kB
view hashes)
Built Distribution
Close
Hashes for tlstrust-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f3ef2b5a3a0bb8f4b8e63851c4e8f104c0c475460a4c0a8a3ef1125ef4791be |
|
MD5 | ef4836dd628262705e3f8a024d67525b |
|
BLAKE2b-256 | 84bd2aee224ec6d3b59e8c03af94e1693dd8bdd40c2d3aa9c81cf40cf8c5302e |