tiny_ca.storage.const module¶
storage/const.py
Shared type aliases for the storage layer.
Exports CryptoObject, a union type alias covering every cryptographic
object that BaseStorage.save_certificate is capable of serialising and
persisting. Declaring it once here prevents duplication across
base_storage.py, local_storage.py, and any future storage backends.
- tiny_ca.storage.const.CryptoObject = cryptography.hazmat.bindings._rust.x509.Certificate | cryptography.hazmat.bindings._rust.x509.CertificateRevocationList | cryptography.hazmat.bindings._rust.x509.CertificateSigningRequest | cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey | cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey¶
Union of all cryptographic object types accepted by the storage layer.
Type
Extension
x509.Certificate.pemx509.CertificateRevocationList.pemCertificateSigningRequest(Rust).csrrsa.RSAPrivateKey.keyrsa.RSAPublicKey.pubThe internal Rust-backed
CertificateSigningRequesttype is included because thecryptographylibrary exposes CSR objects through its Rust bindings rather than a pure-Python class.