X.500 distinguished name (string form)
ID x500_distinguished_name
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Name of an entry in an X.500 or LDAP directory and of the subject or issuer of an X.509 certificate, written as a string of attribute=value pairs, for example CN=..., O=..., C=... The string form is defined by RFC 4514 (pairs separated by commas, multi-valued names joined with +); certificate tools such as Windows CryptoAPI and OpenSSL print the same form with a space after each comma, use E for the email address and S or ST for the region, and may write an attribute by its OID. Russian qualified certificates add attributes such as ИНН, ОГРН and СНИЛС. The regexp needs at least two pairs and one common attribute (CN, O, OU, DC, UID, C, L, ST, S, STREET, E, SN, G or T), and values without an = sign. The slash form /C=RU/O=... of OpenSSL is not covered. The name of a person or the SNILS in it are personal data.
- Categories
- Cryptographic identifiers
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Quality
- 80/100 · missing: mapping (Wikidata, Schema.org, ...), detector coverage
- Metacrafter rules
- no detection rule yet
- Supported by tools
- no tool record lists this type yet
Regular expression
^(?=(?:.*[,;+]\s*)?(?:CN|O|OU|DC|UID|C|L|ST|S|STREET|E|SN|G|T)=)(?:[A-Za-zА-ЯЁа-яё][A-Za-zА-ЯЁа-яё0-9-]*|(?:OID\.)?[0-2](?:\.\d+)+)=[^=]*(?:[,;+]\s*(?:[A-Za-zА-ЯЁа-яё][A-Za-zА-ЯЁа-яё0-9-]*|(?:OID\.)?[0-2](?:\.\d+)+)=[^=]*)+$
Python re syntax.
Examples
| Value | Description |
|---|---|
| UID=jsmith,DC=example,DC=net | Example of RFC 4514, section 4 |
| OU=Sales+CN=J. Smith,DC=example,DC=net | Multi-valued relative name, RFC 4514, section 4 |
| CN=GnuTLS certificate authority,ST=Leuven,OU=GnuTLS certificate authority,O=GnuTLS,C=BE | Issuer of the example certificate of RFC 7468, section 5.1 |
| CN=Минкомсвязь России, ИНН=007710474375, ОГРН=1047702026701, O=Минкомсвязь России, STREET=улица Тверская, дом 7, L=г. Москва, ST=77 Москва, C=RU, E=dit@minsvyaz.ru | Issuer of Russian qualified certificates, as printed by CryptoAPI (e-trust.gosuslugi.ru) |
| CN=example.org invalid | A single attribute; the regexp needs at least two |
| color=red, size=L invalid | Key-value pairs without a directory attribute |
Translations
| Language | Name | Description |
|---|---|---|
| Russian | Отличительное имя X.500 (DN) | Имя записи каталога X.500 или LDAP, владельца или издателя сертификата X.509 в виде строки пар атрибут=значение (CN=..., O=..., C=...). В российских квалифицированных сертификатах есть атрибуты ИНН, ОГРН, СНИЛС. |
Sources
- doc: https://www.rfc-editor.org/rfc/rfc4514
- doc: https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.4
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/x500_distinguished_name - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/cryptography/x500_distinguished_name.yamlon GitHub