OPENSSL-NAMEDISPLAY-OPTIONS(1ossl)
π openssl-namedisplay-options π
π NAME π
openssl-namedisplay-options β Distinguished name display options. This is the 1ossl manual, bestie, and itβs all about how OpenSSL shows off subject and issuer DNs. π
β¨ SYNOPSIS β¨
openssl command [ options ... ] [ parameters ... ]
πΈ DESCRIPTION πΈ
Okay so OpenSSL provides fine-grain control over how the subject and issuer DNβs are displayed. This is specified by using the -nameopt option, which takes a comma-separated list of options from the following set. An option may be preceded by a minus sign, -, to turn it off. The first four option arguments are the most commonly used. Main character options, tbh. π
The default value is:
esc_ctrl,utf8,dump_unknown,dump_der,sep_comma_plus_space,sname
π« OPTIONS π«
π¦ Name Format Option Arguments π¦
The DN output format can be fine tuned with the following flags. Letβs get into it. π
compatβ Display the name using an old format from previous OpenSSL versions. Vintage vibes, but make it compatibility. πRFC2253β Display the name using the format defined in RFC 2253. It is equivalent toesc_2253,esc_ctrl,esc_msb,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_revandsname. Absolute classic, no cap. πonelineβ Display the name in one line, using a format that is more readable RFC 2253. It is equivalent toesc_2253,esc_ctrl,esc_msb,utf8,dump_nostr,dump_der,use_quote,sep_comma_plus_space,space_eqandsnameoptions. One-line slay. β¨multilineβ Display the name using multiple lines. It is equivalent toesc_ctrl,esc_msb,sep_multiline,space_eq,lnameandalignoptions. Multi-line main character energy. πesc_2253β Escape the "special" characters in a field, as required by RFC 2253. That is, any of the characters",+"<>;","#"at the beginning of a string and leading or trailing spaces. Escaping tea, served fresh. βesc_2254β Escape the "special" characters in a field as required by RFC 2254 in a field. That is, theNULcharacter and of"()*". Niche but valid. π«Άesc_ctrlβ Escape non-printable ASCII characters, codes less than0x20(space) or greater than0x7F(DELETE). They are displayed using RFC 2253"\XX"notation whereXXare the two hex digits representing the character value. Bye invisible gremlins. π»esc_msbβ Escape any characters with the most significant bit set, that is with values larger than127, as described inesc_ctrl. Big-bit energy handled. π₯use_quoteβ Escapes some characters by surrounding the entire string with quotation marks,". Without this option, individual special characters are preceded with a backslash character,\. Quote it or slash it, bestie. πutf8β Convert all strings to UTF-8 format first as required by RFC 2253. If the output device is UTF-8 compatible, then using this option (and not settingesc_msb) may give the correct display of multibyte characters. If this option is not set, then multibyte characters larger than0xFFwill be output as\UXXXXfor 16 bits or\WXXXXXXXXfor 32 bits. In addition, anyUTF8Stringswill be converted to their character form first. UTF-8 girlies rise. πignore_typeβ This option does not attempt to interpret multibyte characters in any way. That is, the content octets are merely dumped as though one octet represents each character. This is useful for diagnostic purposes but will result in rather odd looking output. Chaotic diagnostic vibes, but valid. πshow_typeβ Display the type of the ASN1 character string before the value, such asBMPSTRING: Hello World. Name tag moment. π·οΈdump_derβ Any fields that would be output in hex format are displayed using the DER encoding of the field. If not set, just the content octets are displayed. Either way, the#XXXX...format of RFC 2253 is used. DER details, periodt. π§dump_nostrβ Dump non-character strings, such as ASN.1 OCTET STRING. If this option is not set, then non character string types will be displayed as though each content octet represents a single character. Non-character strings get their moment. β¨dump_allβ Dump all fields. When this used withdump_der, this allows the DER encoding of the structure to be unambiguously determined. All the fields, all the clarity. πdump_unknownβ Dump any field whose OID is not recognised by OpenSSL. Unknown OIDs donβt get ignored on our watch. π
Okay, the separator squad: sep_comma_plus, sep_comma_plus_space, sep_semi_plus_space, and sep_multiline all specify the field separators. The first word is used between the Relative Distinguished Names (RDNs) and the second is between multiple Attribute Value Assertions (AVAs). Multiple AVAs are very rare and their use is discouraged. The options ending in space additionally place a space after the separator to make it more readable. sep_multiline starts each field on its own line, and uses plus space for the AVA separator. It also indents the fields by four characters. The default value is sep_comma_plus_space.
sep_comma_plusβ field separator option from the squad above. Comma-plus combo. π«Άsep_comma_plus_spaceβ field separator option from the squad above; this is the default. Default queen. πsep_semi_plus_spaceβ field separator option from the squad above. Semi-plus space moment. πΈsep_multilineβ field separator option from the squad above. Every field on its own line, with four-character indent energy. πdn_revβ Reverse the fields of the DN as required by RFC 2253. This also reverses the order of multiple AVAs in a field, but this is permissible as there is no ordering on values. Reverse it, itβs valid. π
Field-name display squad, assemble: these options specify how the field name is displayed. π«Ά
nofnameβ Does not display the field at all. Ghost mode. π»snameβ Uses the "short name" form (CNforcommonNamefor example). Short and sweet. πlnameβ Uses the long form. Full-name energy. β¨oidβ Represents the OID in numerical form and is useful for diagnostic purpose. Numbers donβt lie. π’alignβ Align field values for a more readable output. Only usable withsep_multiline. Alignment is self-care. πspace_eqβ Places spaces round the equal sign,=, character which follows the field name. Spaces around the=: tiny but iconic. β¨
π COPYRIGHT π
Copyright 2000-2025 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
mwah π this page is OpenSSL 3.5.9, dated 2026-09-29, from the 1ossl manual β byeee bestie π«Άβ¨
π¦ where this page comes from
- alpine 3.23: openssl-doc 3.5.9-r0 Β· Apache-2.0
- alpine 3.24: openssl-doc 3.5.9-r0 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms