Skip to content

Commit dda1b06

Browse files
doc: Clarify the system value for sslrootcert
The documentation for the special value "system" for sslrootcert could be misinterpreted to mean the default operating system CA store, which it may be, but it's defined to be the default CA store of the SSL lib used. Backpatch down to v16 where support for the system value was added. Author: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: George MacKerron <george@mackerron.co.uk> Discussion: https://postgr.es/m/B3CBBAA3-6EA3-4AB7-8619-4BBFAB93DDB4@yesql.se Backpatch-through: 16
1 parent 65e9418 commit dda1b06

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
18781878
</para>
18791879
<para>
18801880
The special value <literal>system</literal> may be specified instead, in
1881-
which case the system's trusted CA roots will be loaded. The exact
1881+
which case the trusted CA roots from the SSL implementation will be loaded. The exact
18821882
locations of these root certificates differ by SSL implementation and
18831883
platform. For <productname>OpenSSL</productname> in particular, the
18841884
locations may be further modified by the <envar>SSL_CERT_DIR</envar>

doc/src/sgml/runtime.sgml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,8 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433
20092009
<literal>sslmode=verify-ca</literal> or
20102010
<literal>verify-full</literal> and have the appropriate root certificate
20112011
file installed (<xref linkend="libq-ssl-certificates"/>). Alternatively the
2012-
system CA pool can be used using <literal>sslrootcert=system</literal>; in
2012+
<link linkend="libpq-connect-sslrootcert">system CA pool</link>, as defined
2013+
by the SSL implementation, can be used using <literal>sslrootcert=system</literal>; in
20132014
this case, <literal>sslmode=verify-full</literal> is forced for safety, since
20142015
it is generally trivial to obtain certificates which are signed by a public
20152016
CA.

0 commit comments

Comments
 (0)