doc: Clarify the system value for sslrootcert
authorDaniel Gustafsson <[email protected]>
Fri, 4 Apr 2025 07:47:36 +0000 (09:47 +0200)
committerDaniel Gustafsson <[email protected]>
Fri, 4 Apr 2025 07:47:36 +0000 (09:47 +0200)
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.

Back down to v16 where support for the system value was added.

Author: Daniel Gustafsson <[email protected]>
Reviewed-by: George MacKerron <[email protected]>
Discussion: https://postgr.es/m/B3CBBAA3-6EA3-4AB7-8619-4BBFAB93DDB4@yesql.se
Back-through: 16

doc/src/sgml/libpq.sgml
doc/src/sgml/runtime.sgml

index 5e3281ca2eba1555b8e04b77151c69a9455da217..37102c235b0fc4e7a59515d59cdf6238e47fff79 100644 (file)
@@ -2042,7 +2042,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
        </para>
        <para>
         The special value <literal>system</literal> may be specified instead, in
-        which case the system's trusted CA roots will be loaded. The exact
+        which case the trusted CA roots from the SSL implementation will be loaded. The exact
         locations of these root certificates differ by SSL implementation and
         platform. For <productname>OpenSSL</productname> in particular, the
         locations may be further modified by the <envar>SSL_CERT_DIR</envar>
index 59f39e8992470247c6ad533e12a9d3b8d7147af1..3a6d308ae355bd3d320251295be5776eddf015db 100644 (file)
@@ -1994,7 +1994,8 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433
    <literal>sslmode=verify-ca</literal> or
    <literal>verify-full</literal> and have the appropriate root certificate
    file installed (<xref linkend="libq-ssl-certificates"/>). Alternatively the
-   system CA pool can be used using <literal>sslrootcert=system</literal>; in
+   <link linkend="libpq-connect-sslrootcert">system CA pool</link>, as defined
+   by the SSL implementation, can be used using <literal>sslrootcert=system</literal>; in
    this case, <literal>sslmode=verify-full</literal> is forced for safety, since
    it is generally trivial to obtain certificates which are signed by a public
    CA.