From: Daniel Gustafsson Date: Fri, 4 Apr 2025 07:47:36 +0000 (+0200) Subject: doc: Clarify the system value for sslrootcert X-Git-Tag: REL_18_BETA1~288 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=daa16893faa96246d758eb2cc27e2f75c5308296;p=postgresql.git 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 Reviewed-by: George MacKerron Discussion: https://postgr.es/m/B3CBBAA3-6EA3-4AB7-8619-4BBFAB93DDB4@yesql.se Backpatch-through: 16 --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 5e3281ca2eb..37102c235b0 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -2042,7 +2042,7 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname The special value system 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 OpenSSL in particular, the locations may be further modified by the SSL_CERT_DIR diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 59f39e89924..3a6d308ae35 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1994,7 +1994,8 @@ pg_dumpall -p 5432 | psql -d postgres -p 5433 sslmode=verify-ca or verify-full and have the appropriate root certificate file installed (). Alternatively the - system CA pool can be used using sslrootcert=system; in + system CA pool, as defined + by the SSL implementation, can be used using sslrootcert=system; in this case, sslmode=verify-full is forced for safety, since it is generally trivial to obtain certificates which are signed by a public CA.