Skip to main content

Module name_builder

Module name_builder 

Source
Expand description

Python bindings for building X.509 Distinguished Names.

Wraps synta_certificate::NameBuilder, a fluent builder that accumulates AttributeTypeAndValue entries and serialises them into a DER-encoded Name SEQUENCE on demand.

§Chaining

Each setter returns the same NameBuilder object, enabling a single-expression build:

import synta

name_der = (
    synta.NameBuilder()
    .country("US")
    .organization("Example Corp")
    .common_name("example.com")
    .build()
)

Structs§

PyNameBuilder
Builder for DER-encoded X.509 Name SEQUENCE structures.