Skip to content

Commit 0df4f75

Browse files
doc: Fix incorrect openssl option
The openssl command for displaying the DN of a client certificate was using --subject and not the single-dash option -subject. While recent versions of openssl handles double dash options, earlier does not so fix by using just -subject (which is per the openssl documentation). Backpatch to v14 where this was introduced. Reported-by: konkove@gmail.com Discussion: https://postgr.es/m/170672168899.666.10442618407194498217@wrigleys.postgresql.org Backpatch-through: v14
1 parent 781bc12 commit 0df4f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/client-auth.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ include_dir <replaceable>directory</replaceable>
666666
format. To see the <literal>DN</literal> of a client certificate
667667
in this format, do
668668
<programlisting>
669-
openssl x509 -in myclient.crt -noout --subject -nameopt RFC2253 | sed "s/^subject=//"
669+
openssl x509 -in myclient.crt -noout -subject -nameopt RFC2253 | sed "s/^subject=//"
670670
</programlisting>
671671
Care needs to be taken when using this option, especially when using
672672
regular expression matching against the <literal>DN</literal>.

0 commit comments

Comments
 (0)