Skip to content

Commit 0293f85

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 235c09e commit 0293f85

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
@@ -695,7 +695,7 @@ include_dir <replaceable>directory</replaceable>
695695
format. To see the <literal>DN</literal> of a client certificate
696696
in this format, do
697697
<programlisting>
698-
openssl x509 -in myclient.crt -noout --subject -nameopt RFC2253 | sed "s/^subject=//"
698+
openssl x509 -in myclient.crt -noout -subject -nameopt RFC2253 | sed "s/^subject=//"
699699
</programlisting>
700700
Care needs to be taken when using this option, especially when using
701701
regular expression matching against the <literal>DN</literal>.

0 commit comments

Comments
 (0)