summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorDaniel Gustafsson2024-02-01 08:36:34 +0000
committerDaniel Gustafsson2024-02-01 08:36:34 +0000
commit0293f8579c4d2e9219faa06e5cb8c8d31cf06fbc (patch)
treee1cb5c1bae753c1a81fe68a2f885fea0ed0311e6 /doc/src
parent235c09efbb306d6263e904e484abdf44866beb5e (diff)
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: [email protected] Discussion: https://postgr.es/m/[email protected] Backpatch-through: v14
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/client-auth.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/client-auth.sgml b/doc/src/sgml/client-auth.sgml
index 477f70a65d6..56747c0e365 100644
--- a/doc/src/sgml/client-auth.sgml
+++ b/doc/src/sgml/client-auth.sgml
@@ -695,7 +695,7 @@ include_dir <replaceable>directory</replaceable>
format. To see the <literal>DN</literal> of a client certificate
in this format, do
<programlisting>
-openssl x509 -in myclient.crt -noout --subject -nameopt RFC2253 | sed "s/^subject=//"
+openssl x509 -in myclient.crt -noout -subject -nameopt RFC2253 | sed "s/^subject=//"
</programlisting>
Care needs to be taken when using this option, especially when using
regular expression matching against the <literal>DN</literal>.