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