Module c509_certificate::name
source · Expand description
C509 type Name
Currently only support natively signed c509 certificate, so all text strings are UTF-8 encoded and all attributeType should be non-negative.
Name = [ * RelativeDistinguishedName ] / text / bytes
RelativeDistinguishedName = Attribute / [ 2* Attribute ]
Attribute = ( attributeType: int, attributeValue: text ) //
( attributeType: ~oid, attributeValue: bytes ) //
( attributeType: pen, attributeValue: bytes )
For more information about Name, visit C509 Certificate
Modules§
- C509 Relative Distinguished Name
Structs§
- A struct of C509 Name with
NameValue
.
Enums§
- An enum of possible value types for
Name
.
Constants§
- OID of
CommonName
attribute. - Total length of CBOR byte for EUI-64.
- Total length of CBOR byte for EUI-64 mapped from a 48-bit MAC address.
- EUI-64 prefix.
- Hex prefix.
Functions§
- Create a relative distinguished name with attribute common name from string.
- Decode bytes.
- Decode common name EUI-64 bytes.
- Decode common name hex bytes.
- Encode common name value.
- Format EUI bytes.