postgresql_16:4.4.9.4 SSL Server File Usage
PostgreSQL 16 > Server Administration > Server Setup and Operation > Secure TCP/IP Connections with SSL > SSL Server File Usage
(see ssl-file-usage) summarizes the files that are relevant to the SSL setup on the server. (The shown file names are default names. The locally configured names could be different.)
| File | Contents | Effect | | --- | --- | --- | | (see guc-ssl-cert-file) ($PGDATA/server.crt) | server certificate | sent to client to indicate server's identity | | (see guc-ssl-key-file) ($PGDATA/server.key) | server private key | proves server certificate was sent by the owner; does not indicate certificate owner is trustworthy | | (see guc-ssl-ca-file) | trusted certificate authorities | checks that client certificate is signed by a trusted certificate authority | | (see guc-ssl-crl-file) | certificates revoked by certificate authorities | client certificate must not be on this list |
The server reads these files at server start and whenever the server configuration is reloaded. On Windows systems, they are also re-read whenever a new backend process is spawned for a new client connection.
If an error in these files is detected at server start, the server will refuse to start. But if an error is detected during a configuration reload, the files are ignored and the old SSL configuration continues to be used. On Windows systems, if an error in these files is detected at backend start, that backend will be unable to establish an SSL connection. In all these cases, the error condition is reported in the server log.