pub fn encode_extended_key_usage<'py>(
py: Python<'py>,
oids: &Bound<'_, PyList>,
) -> PyResult<Bound<'py, PyBytes>>Expand description
Encode a list of OIDs as a DER SEQUENCE OF OID (ExtendedKeyUsage value).
oids must be a :class:list of :class:~synta.ObjectIdentifier or
dotted-decimal str values. Returns the complete DER bytes of the
SEQUENCE, suitable for use as an X.509v3 Extended Key Usage extension
value.
Delegates to synta’s Vec<ObjectIdentifier> encoder which matches the
generated ExtendedKeyUsage = Vec<KeyPurposeId> type from the X.509 schema.
eku_der = synta.encode_extended_key_usage([
"1.3.6.1.5.5.7.3.1", # id-kp-serverAuth
"1.3.6.1.5.5.7.3.2", # id-kp-clientAuth
])