openssl-namedisplay-options.pod revision 1.1 1 1.1 christos =pod
2 1.1 christos
3 1.1 christos =head1 NAME
4 1.1 christos
5 1.1 christos openssl-namedisplay-options - Distinguished name display options
6 1.1 christos
7 1.1 christos =head1 SYNOPSIS
8 1.1 christos
9 1.1 christos B<openssl>
10 1.1 christos I<command>
11 1.1 christos [ I<options> ... ]
12 1.1 christos [ I<parameters> ... ]
13 1.1 christos
14 1.1 christos =head1 DESCRIPTION
15 1.1 christos
16 1.1 christos OpenSSL provides fine-grain control over how the subject and issuer DN's are
17 1.1 christos displayed.
18 1.1 christos This is specified by using the B<-nameopt> option, which takes a
19 1.1 christos comma-separated list of options from the following set.
20 1.1 christos An option may be preceded by a minus sign, C<->, to turn it off.
21 1.1 christos The first four option arguments are the most commonly used.
22 1.1 christos
23 1.1 christos The default value is
24 1.1 christos C<esc_ctrl,utf8,dump_unknown,dump_der,sep_comma_plus_space,sname>.
25 1.1 christos
26 1.1 christos =head1 OPTIONS
27 1.1 christos
28 1.1 christos =head2 Name Format Option Arguments
29 1.1 christos
30 1.1 christos The DN output format can be fine tuned with the following flags.
31 1.1 christos
32 1.1 christos =over 4
33 1.1 christos
34 1.1 christos =item B<compat>
35 1.1 christos
36 1.1 christos Display the name using an old format from previous OpenSSL versions.
37 1.1 christos
38 1.1 christos =item B<RFC2253>
39 1.1 christos
40 1.1 christos Display the name using the format defined in RFC 2253.
41 1.1 christos It is equivalent to B<esc_2253>, B<esc_ctrl>, B<esc_msb>, B<utf8>,
42 1.1 christos B<dump_nostr>, B<dump_unknown>, B<dump_der>, B<sep_comma_plus>, B<dn_rev>
43 1.1 christos and B<sname>.
44 1.1 christos
45 1.1 christos =item B<oneline>
46 1.1 christos
47 1.1 christos Display the name in one line, using a format that is more readable
48 1.1 christos RFC 2253.
49 1.1 christos It is equivalent to B<esc_2253>, B<esc_ctrl>, B<esc_msb>, B<utf8>,
50 1.1 christos B<dump_nostr>, B<dump_der>, B<use_quote>, B<sep_comma_plus_space>,
51 1.1 christos B<space_eq> and B<sname> options.
52 1.1 christos
53 1.1 christos =item B<multiline>
54 1.1 christos
55 1.1 christos Display the name using multiple lines.
56 1.1 christos It is equivalent to B<esc_ctrl>, B<esc_msb>, B<sep_multiline>, B<space_eq>,
57 1.1 christos B<lname> and B<align>.
58 1.1 christos
59 1.1 christos =item B<esc_2253>
60 1.1 christos
61 1.1 christos Escape the "special" characters in a field, as required by RFC 2253.
62 1.1 christos That is, any of the characters C<,+"E<lt>E<gt>;>, C<#> at the beginning of
63 1.1 christos a string and leading or trailing spaces.
64 1.1 christos
65 1.1 christos =item B<esc_2254>
66 1.1 christos
67 1.1 christos Escape the "special" characters in a field as required by RFC 2254 in a field.
68 1.1 christos That is, the B<NUL> character and of C<()*>.
69 1.1 christos
70 1.1 christos =item B<esc_ctrl>
71 1.1 christos
72 1.1 christos Escape non-printable ASCII characters, codes less than 0x20 (space)
73 1.1 christos or greater than 0x7F (DELETE). They are displayed using RFC 2253 C<\XX>
74 1.1 christos notation where B<XX> are the two hex digits representing the character value.
75 1.1 christos
76 1.1 christos =item B<esc_msb>
77 1.1 christos
78 1.1 christos Escape any characters with the most significant bit set, that is with
79 1.1 christos values larger than 127, as described in B<esc_ctrl>.
80 1.1 christos
81 1.1 christos =item B<use_quote>
82 1.1 christos
83 1.1 christos Escapes some characters by surrounding the entire string with quotation
84 1.1 christos marks, C<">.
85 1.1 christos Without this option, individual special characters are preceded with
86 1.1 christos a backslash character, C<\>.
87 1.1 christos
88 1.1 christos =item B<utf8>
89 1.1 christos
90 1.1 christos Convert all strings to UTF-8 format first as required by RFC 2253.
91 1.1 christos If the output device is UTF-8 compatible, then using this option (and
92 1.1 christos not setting B<esc_msb>) may give the correct display of multibyte
93 1.1 christos characters.
94 1.1 christos If this option is not set, then multibyte characters larger than 0xFF
95 1.1 christos will be output as C<\UXXXX> for 16 bits or C<\WXXXXXXXX> for 32 bits.
96 1.1 christos In addition, any UTF8Strings will be converted to their character form first.
97 1.1 christos
98 1.1 christos =item B<ignore_type>
99 1.1 christos
100 1.1 christos This option does not attempt to interpret multibyte characters in any
101 1.1 christos way. That is, the content octets are merely dumped as though one octet
102 1.1 christos represents each character. This is useful for diagnostic purposes but
103 1.1 christos will result in rather odd looking output.
104 1.1 christos
105 1.1 christos =item B<show_type>
106 1.1 christos
107 1.1 christos Display the type of the ASN1 character string before the value,
108 1.1 christos such as C<BMPSTRING: Hello World>.
109 1.1 christos
110 1.1 christos =item B<dump_der>
111 1.1 christos
112 1.1 christos Any fields that would be output in hex format are displayed using
113 1.1 christos the DER encoding of the field.
114 1.1 christos If not set, just the content octets are displayed.
115 1.1 christos Either way, the B<#XXXX...> format of RFC 2253 is used.
116 1.1 christos
117 1.1 christos =item B<dump_nostr>
118 1.1 christos
119 1.1 christos Dump non-character strings, such as ASN.1 B<OCTET STRING>.
120 1.1 christos If this option is not set, then non character string types will be displayed
121 1.1 christos as though each content octet represents a single character.
122 1.1 christos
123 1.1 christos =item B<dump_all>
124 1.1 christos
125 1.1 christos Dump all fields. When this used with B<dump_der>, this allows the
126 1.1 christos DER encoding of the structure to be unambiguously determined.
127 1.1 christos
128 1.1 christos =item B<dump_unknown>
129 1.1 christos
130 1.1 christos Dump any field whose OID is not recognised by OpenSSL.
131 1.1 christos
132 1.1 christos =item B<sep_comma_plus>, B<sep_comma_plus_space>, B<sep_semi_plus_space>,
133 1.1 christos B<sep_multiline>
134 1.1 christos
135 1.1 christos Specify the field separators. The first word is used between the
136 1.1 christos Relative Distinguished Names (RDNs) and the second is between
137 1.1 christos multiple Attribute Value Assertions (AVAs). Multiple AVAs are
138 1.1 christos very rare and their use is discouraged.
139 1.1 christos The options ending in "space" additionally place a space after the separator to make it more readable.
140 1.1 christos The B<sep_multiline> starts each field on its own line, and uses "plus space"
141 1.1 christos for the AVA separator.
142 1.1 christos It also indents the fields by four characters.
143 1.1 christos The default value is B<sep_comma_plus_space>.
144 1.1 christos
145 1.1 christos =item B<dn_rev>
146 1.1 christos
147 1.1 christos Reverse the fields of the DN as required by RFC 2253.
148 1.1 christos This also reverses the order of multiple AVAs in a field, but this is
149 1.1 christos permissible as there is no ordering on values.
150 1.1 christos
151 1.1 christos =item B<nofname>, B<sname>, B<lname>, B<oid>
152 1.1 christos
153 1.1 christos Specify how the field name is displayed.
154 1.1 christos B<nofname> does not display the field at all.
155 1.1 christos B<sname> uses the "short name" form (CN for commonName for example).
156 1.1 christos B<lname> uses the long form.
157 1.1 christos B<oid> represents the OID in numerical form and is useful for
158 1.1 christos diagnostic purpose.
159 1.1 christos
160 1.1 christos =item B<align>
161 1.1 christos
162 1.1 christos Align field values for a more readable output. Only usable with
163 1.1 christos B<sep_multiline>.
164 1.1 christos
165 1.1 christos =item B<space_eq>
166 1.1 christos
167 1.1 christos Places spaces round the equal sign, C<=>, character which follows the field
168 1.1 christos name.
169 1.1 christos
170 1.1 christos =back
171 1.1 christos
172 1.1 christos =head1 COPYRIGHT
173 1.1 christos
174 1.1 christos Copyright 2000-2025 The OpenSSL Project Authors. All Rights Reserved.
175 1.1 christos
176 1.1 christos Licensed under the Apache License 2.0 (the "License"). You may not use
177 1.1 christos this file except in compliance with the License. You can obtain a copy
178 1.1 christos in the file LICENSE in the source distribution or at
179 1.1 christos L<https://www.openssl.org/source/license.html>.
180 1.1 christos
181 1.1 christos =cut
182