Content-Length: 258158 | pFad | http://github.com/postgrespro/postgres/commit/0293f8579c4d2e9219faa06e5cb8c8d31cf06fbc

11 doc: Fix incorrect openssl option · postgrespro/postgres@0293f85 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0293f8579c4d2e9219faa06e5cb8c8d31cf06fbc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy