OPENSSL-NAMEDISPLAY-OPTIONS(1ossl)
π OPENSSL-NAMEDISPLAY-OPTIONS (1ossl) π
okay so bestie, welcome to the glow-up guide for openssl-namedisplay-options β the OpenSSL manual page that teaches you how to make Distinguished Names (DNs) look exactly how you want them to look. no cap, this one's a vibe. π
β¨ NAME β¨
openssl-namedisplay-options β Distinguished name display options. literally what it says on the tin. π
πΈ SYNOPSIS πΈ
openssl command [ options ... ] [ parameters ... ]
π¦ DESCRIPTION π¦
OpenSSL gives you fine-grain control over how the subject and issuer DNs get displayed β like, actually fine-grained, we're talking microscopic levels of control here. π
You tell it what you want with the -nameopt option, which takes a comma-separated list of options picked from the set down below. And here's the cute part: any option can be preceded by a minus sign, -, to turn it off. So you can just say "no thank you" to any of them. π
ββοΈ
The first four option arguments are the most commonly used ones β the main characters, iykyk. β
The default value is:
"esc_ctrl,utf8,dump_unknown,dump_der,sep_comma_plus_space,sname"
so that's the fit it ships with before you start customising. π
π₯ OPTIONS π₯
π§ Name Format Option Arguments π§
The DN output format can be fine tuned with the following flags β go off, customise your little heart out. π
compatβ Displays the name using an old format from previous OpenSSL versions. vintage. nostalgic. a throwback era. π°οΈRFC2253β Displays the name using the format defined in RFC 2253. It's equivalent toesc_2253,esc_ctrl,esc_msb,utf8,dump_nostr,dump_unknown,dump_der,sep_comma_plus,dn_revandsnameβ that's the whole bundle, one click, slay. ποΈonelineβ Displays the name on one line, using a format that's more readable than RFC 2253. It's equivalent toesc_2253,esc_ctrl,esc_msb,utf8,dump_nostr,dump_der,use_quote,sep_comma_plus_space,space_eqandsname. one line. one vibe. β¨multilineβ Displays the name using multiple lines. It's equivalent toesc_ctrl,esc_msb,sep_multiline,space_eq,lnameandalign. give it room to breathe, bestie. π¬οΈesc_2253β Escapes the "special" characters in a field, as required by RFC 2253. That means any of the characters,+"<>;, plus#when it's at the beginning of a string, plus leading or trailing spaces. those ones get the backslash treatment. πͺesc_2254β Escapes the "special" characters in a field as required by RFC 2254. That's the NUL character and any of()*. π§Όesc_ctrlβ Escapes non-printable ASCII characters β codes less than0x20(space) or greater than0x7F(DELETE). They're displayed using RFC 2253's\XXnotation, where XX are the two hex digits representing the character value. hex girlies rise. π’esc_msbβ Escapes any characters with the most significant bit set, i.e. with values larger than 127, as described inesc_ctrl. π―use_quoteβ Escapes some characters by surrounding the entire string with quotation marks,". Without this option, individual special characters get preceded with a backslash character,\. two aesthetics, pick your fighter. βοΈutf8β Converts all strings to UTF-8 format first, as required by RFC 2253. If your output device is UTF-8 compatible, using this option (and not settingesc_msb) may give you the correct display of multibyte characters. π¦ If this option isn't set, then multibyte characters larger than0xFFwill be output as\UXXXXfor 16 bits or\WXXXXXXXXfor 32 bits. Also β any UTF8Strings get converted to their character form first. πignore_typeβ This option doesn't attempt to interpret multibyte characters in any way. The content octets are merely dumped as though one octet represents each character. Useful for diagnostic purposes, but ngl the output is gonna look rather odd. πshow_typeβ Displays the type of the ASN1 character string before the value, likeBMPSTRING: Hello World. label girlies, this one's for you. π·οΈdump_derβ Any fields that would be output in hex format are displayed using the DER encoding of the field. If it's not set, just the content octets are displayed. Either way, the#XXXX...format of RFC 2253 is used. π§¬dump_nostrβ Dumps non-character strings, such as ASN.1 OCTET STRING. If this option isn't set, then non-character string types get displayed as though each content octet represents a single character. πdump_allβ Dumps all fields. When this is used withdump_der, it allows the DER encoding of the structure to be unambiguously determined. all of it. every last crumb. π½οΈdump_unknownβ Dumps any field whose OID isn't recognised by OpenSSL. we don't know her but we support her. πsep_comma_plus,sep_comma_plus_space,sep_semi_plus_space,sep_multilineβ These 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 inspaceadditionally place a space after the separator to make it more readable.sep_multilinestarts 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 issep_comma_plus_space. πdn_revβ Reverses the fields of the DN as required by RFC 2253. This also reverses the order of multiple AVAs in a field, but that's permissible since there's no ordering on values. πnofname,sname,lname,oidβ These specify how the field name is displayed.nofnamedoesn't display the field at all (ghosting it, respectfully).snameuses the "short name" form (soCNinstead ofcommonName, for example).lnameuses the long form.oidrepresents the OID in numerical form and is useful for diagnostic purposes. πalignβ Aligns field values for a more readable output. Only usable withsep_multilineβ that's the rules, babe. πspace_eqβ Places spaces round the equal sign,=, character which follows the field name. symmetrical. balanced. aesthetic. βοΈ
π 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>.
and that's the whole page, bestie β mwah π
shoutout to OpenSSL 3.5.6, dated 2026-04-07, for sponsoring this entire moment. π«Άβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms