Skip to main content

Module certificate

Module certificate 

Source
Expand description

Python bindings for X.509 and related PKI types.

Exposes PyCertificate, PyCsr, PyCrl, and PyOcspResponse as pyo3 classes, along with OID-lookup helper functions and the synta.oids / synta.oids.attr submodules.

This module is part of the synta-python cdylib. Call register_module from the #[pymodule] entry point to expose these types to Python.

Re-exports§

pub use pkix::create_pkcs12;
pub use pkix::encode_extended_key_usage;
pub use pkix::encode_subject_alt_names;
pub use pkix::load_der_pkcs7_certificates;
pub use pkix::load_pem_pkcs7_certificates;
pub use pkix::load_pkcs12;
pub use pkix::load_pkcs12_certificates;
pub use pkix::load_pkcs12_keys;
pub use pkix::name_der_equal;
pub use pkix::read_pki_blocks;

Modules§

ac
Python bindings for RFC 5755 Attribute Certificate types.
ace88
Python bindings for the RFC 7773 Authentication Context certificate extension (ACE-88) builder.
acme
Python bindings for RFC 8737 ACME TLS-ALPN-01 extension types.
cert
Python binding for PyCertificate (X.509 Certificate).
cert_builder
Python bindings for building X.509 certificates natively.
cmp
Python bindings for RFC 9810 Certificate Management Protocol (CMP) types.
cms
Python bindings for CMS content types (RFC 5652 / RFC 9629).
crmf
Python bindings for RFC 4211 Certificate Request Message Format (CRMF).
csr_builder
Python bindings for building PKCS #10 Certificate Signing Requests.
ess
Python bindings for RFC 2634 Extended Security Services (ESS) builders.
general_name
Typed Python classes for each GeneralName variant (RFC 5280 §4.2.1.6).
kem
Python bindings for KEM algorithm types (RFC 9629 / FIPS 203).
key_types
ML-DSA, RSA public-key, and RSASSA-PSS parameter types for the Python binding.
logotype
Python bindings for the RFC 9399 Logotype certificate extension builder.
ms_pki
Python bindings for Microsoft PKI (AD CS) ASN.1 types.
name_builder
Python bindings for building X.509 Distinguished Names.
pkcs5
Python bindings for PKCS #5 v2.1 (RFC 8018) parameter builders.
pkcs8
Python bindings for PKCS #8 / RFC 5958 private key structures.
pkcs9
Python bindings for PKCS #9 attribute OID constants (RFC 2985).
pkix
Python bindings for PKIX types: PyCsr, PyCrl, PyOcspResponse, and PKCS#7 / PKCS#12 helper functions.
pkixalgs
Python bindings for RFC 3279 algorithm parameter types.
tsp
Python bindings for RFC 3161 Time-Stamp Protocol (TSP) builders and parsed types.

Functions§

register_module
Call this from a cdylib extension crate’s #[pymodule] function: