Where does PostgreSQL use cryptography, and why does an inventory entry matter now?
If your organization is building a cryptographic inventory, PostgreSQL needs its own entry, and the owner should be whoever runs the database platform, with the security lead signing off. The entry should cover five areas: client TLS and the settings that govern it, the certificates and private keys the server and clients load, password storage for database logins, replication and backup connections, and the stored-data functions that use cryptography, such as the pgcrypto extension. PostgreSQL does not implement TLS itself. It relies on OpenSSL on both the client and the server, and it reads the system-wide openssl.cnf, which can be redirected with the OPENSSL_CONF environment variable. The inventory therefore has to record the OpenSSL version each server and client links against, not only the PostgreSQL version.
As of 2026-12-03, the PostgreSQL documentation describes no PostgreSQL-specific post-quantum feature. The PostgreSQL 18 and 19 release notes and the current server and libpq documentation do not mention ML-KEM, ML-DSA or SLH-DSA, and the documented default for ssl_groups is X25519:prime256v1, which contains no post-quantum group. A post-quantum key exchange group can only appear if the OpenSSL build in use supports it and the administrator adds it to ssl_groups. A March 2026 mailing list message showed PostgreSQL 18 negotiating the hybrid group X25519MLKEM768 with OpenSSL 3.5, which means the question is answered by the OpenSSL build, not by a PostgreSQL feature. Record the current ssl_groups value on each server, since it is the setting that changes the answer.
Each entry should also say what the connections protect and for how long. Server certificates and keys are loaded from ssl_cert_file and ssl_key_file, client certificates default to ~/.postgresql/postgresql.crt and postgresql.key, and password storage follows password_encryption, which defaults to scram-sha-256. Replication and base backups run over the regular libpq connection with the replication protocol, so they take their security from the same client settings, while pg_basebackup itself has no backup-encryption option. Confirm with the vendor and in your own configuration which of these settings are actually in force, since defaults and older versions differ. Once the inventory is recorded, the follow-up work is to check the libpq sslmode in use, since prefer remains the default, and to confirm which PostgreSQL major versions are still supported.
Which PostgreSQL areas use cryptography, and which depend on public-key algorithms?
This table lists each PostgreSQL area that uses cryptography, the algorithm family the documentation names, and where it is configured. Rows marked as depending on public-key algorithms use TLS key exchange or certificate signatures, while the rest use symmetric primitives or hashes. Use it as an inventory starting point, then confirm each setting against your own server and client versions.
| Area | What it protects | Algorithm family and dependency | Where configured |
|---|---|---|---|
| Client TLS | Connections between clients and the server, including login credentials and queries | TLS via OpenSSL. Key exchange uses public-key groups (X25519 and prime256v1 by default), so it depends on public-key algorithms | ssl, ssl_groups, ssl_ciphers, ssl_tls13_ciphers, ssl_min_protocol_version in postgresql.conf |
| Client certificate verification | Confirms which client certificates the server accepts | X.509 certificate signatures, so it depends on public-key algorithms | ssl_ca_file, clientcert on hostssl lines in pg_hba.conf, cert authentication method, ssl_crl_file or ssl_crl_dir |
| Server identity files | Proves the server's identity to clients | X.509 certificate and private key, so it depends on public-key algorithms. The documentation states no restriction on key type, only that the key must match the certificate | ssl_cert_file, ssl_key_file, PGDATA/pg_hosts.conf for server-side SNI (PostgreSQL 19) |
| libpq client certificates and keys | Proves the client's identity to the server | X.509 certificate and private key, so it depends on public-key algorithms. Keys may be encrypted with any algorithm OpenSSL supports | ~/.postgresql/postgresql.crt and postgresql.key by default, or the libpq sslcert and sslkey parameters |
| Server certificate verification by clients | Checks that the client is talking to the intended server | Certificate chain signatures, so it depends on public-key algorithms. The default sslmode of prefer does not verify the server | sslmode and sslrootcert in libpq connection parameters |
| Password storage | Stored password verifiers | scram-sha-256 uses symmetric primitives and hashes (per RFC 7677), so it does not depend on public-key algorithms. The md5 type is deprecated | password_encryption and scram_iterations (default 4096) |
| Channel binding | Ties SCRAM logins to the TLS connection | Uses the TLS session, so it inherits the TLS key exchange dependency | channel_binding in libpq (default prefer when SSL is compiled in) |
| GSSAPI encryption | Connections as an alternative to TLS | Depends on the Kerberos or GSSAPI library used, and the documentation does not name its key algorithms | gssencmode in libpq and the hostgssenc line type in pg_hba.conf |
| OAuth validation | Bearer token checks for logins | Token signatures depend on the validator library and identity provider, which the documentation does not describe in algorithm terms | oauth authentication method in pg_hba.conf, oauth_validator_libraries, oauth_* libpq parameters |
| pg_basebackup transport | Base backup data sent over the replication connection | Uses the libpq TLS settings, so it depends on public-key algorithms if TLS is in use. The page describes no backup encryption option | Same libpq connection settings used by other clients |
| pg_basebackup manifest checksums | Detects changes in backup files | CRC32C by default, which the documentation says does not resist malicious changes. The manifest also carries a SHA256 checksum of its own contents. Hashes only, no public-key algorithms | --manifest-checksums (NONE, CRC32C, SHA224, SHA256, SHA384, SHA512) |
| pgcrypto functions | Data encrypted or hashed inside SQL | Symmetric ciphers (bf, aes), hashes (md5, sha1, SHA-2) and crypt types. PGP functions support public-key encryption with DSA, Elgamal or RSA keys, and the page lists no signing support | pgcrypto extension, pgcrypto.builtin_crypto_enabled, PGP cipher-algo |
| Storage encryption | Data files at rest | Handled by the operating system at file system or block level. The documentation does not describe transparent data encryption, so confirm any database-level encryption with the vendor | Operating system or storage layer, outside PostgreSQL settings |
Which protocols does PostgreSQL terminate, and which settings choose their algorithms?
PostgreSQL does not implement its own TLS. Both the server and libpq rely on OpenSSL, and the server reads the system-wide openssl.cnf unless the OPENSSL_CONF environment variable points elsewhere. The server setting ssl defaults to off, so an unconfigured server accepts unencrypted TCP connections. When TLS is enabled, the protocol floor and the algorithm choices are set by a small group of parameters.
- Protocol version:
ssl_min_protocol_versiondefaults to TLSv1.2 in PostgreSQL 19, andssl_max_protocol_versionallows any version by default. SSL versions 2 and 3 are always disabled. - TLS 1.2 and lower ciphers:
ssl_ciphersgoverns these and defaults toHIGH:MEDIUM:+3DES:!aNULL. - TLS 1.3 cipher suites:
ssl_tls13_ciphersgoverns these. When left blank, OpenSSL's built-in suites are used. - Key exchange groups:
ssl_groupsis a colon-separated list passed to OpenSSL. It defaults toX25519:prime256v1, and the documentation says X25519 is not allowed when OpenSSL runs in FIPS mode. - Certificate and key files:
ssl_cert_fileandssl_key_filedefault to server.crt and server.key in the data directory.
Check the ssl setting, the protocol floor and the groups list on every server, and record the OpenSSL build each server links against.
GSSAPI encryption is an alternative to TLS for protecting a connection, and it uses Kerberos-based key establishment rather than TLS handshakes. Its behaviour is set on the client and on the server, so both sides matter when you inventory it. The client parameter gssencmode defaults to prefer, which requests GSSAPI encryption when available and falls back to a plain connection otherwise, so it is worth checking whether a fallback can occur.
- Client mode:
gssencmodein libpq defaults toprefer. - Server requirement: the
hostgssencline type inpg_hba.confaccepts only GSSAPI-encrypted connections for the matched clients. - Plain TCP lines:
hostlines inpg_hba.confalso accept unencrypted connections, so a matched client may not use encryption. - Relationship to TLS: GSSAPI encryption and TLS are separate paths. Enabling one does not change the other's settings.
- Scope of the documentation: the encryption options page describes this as an alternative to TLS and lists the relevant settings, but it does not name a key exchange algorithm for this mode.
Confirm with your Kerberos administrators which key exchange and cipher the GSSAPI mechanism uses in your environment, because PostgreSQL's documentation does not state it.
The pg_basebackup tool takes a base backup over a regular PostgreSQL connection using the replication protocol. It therefore uses the same libpq connection security settings as any other client, so the TLS and GSSAPI settings above apply to it. The pg_basebackup page does not describe a backup-encryption option and does not mention SSL or TLS settings of its own.
- Transport: the backup stream travels over the libpq connection, so its protection comes from
sslmodeand the server's TLS settings. - Client verification:
sslmodedefaults toprefer, which the documentation says makes no sense from a security point of view and is kept for backward compatibility.verify-fullchecks both the CA chain and the host name. - Manifest checksums:
--manifest-checksumssets the per-file checksum algorithm (NONE, CRC32C, SHA224, SHA256, SHA384, SHA512) and defaults to CRC32C. - Manifest integrity: the manifest always carries a SHA256 checksum of its own contents. The page states that CRC32C does not resist malicious changes.
- Stored backups: protection of backup files at rest is not described by this page, so confirm it with the storage or backup tool you use.
Record the sslmode and manifest checksum options used in your backup scripts, because the defaults do not give a verified connection or a tamper-resistant manifest.
PostgreSQL 18 added the oauth authentication method for pg_hba.conf. It accepts OAuth bearer tokens, and the server validates them with the libraries named in oauth_validator_libraries. This moves part of the trust decision out of PostgreSQL and into the token validator and the identity provider behind it, so those components belong in your inventory too.
- Server side:
oauthlines inpg_hba.confselect the method, andoauth_validator_librariesnames the validator libraries. - Client side: libpq uses its
oauth_*connection parameters to obtain and present the token. - Trust store:
oauth_ca_filedefaults to the Curl system certificate bundle, so the certificates trusted for token endpoints come from that bundle unless you change it. - Token validation: the algorithms that sign and verify tokens are set by the identity provider and the validator library, not by PostgreSQL itself.
- Documented scope: the release notes and libpq parameter pages describe the method but do not state which token signing algorithms are supported.
Ask your identity team which signing algorithms the issuer uses, and check which validator library and CA bundle your servers actually load.
Where do PostgreSQL certificates and keys live, and who can rotate them?
PostgreSQL keeps its certificates and keys in files that the operator points to with configuration settings, not in a built-in key store. The cards below list each file type, where it defaults to, and who is responsible for issuing and rotating it, so you can inventory what needs to change before any post-quantum work.
Server certificate and private key
The server presents its certificate during the TLS handshake, and the matching private key is read from the file named by ssl_key_file. The certificate and key default to server.crt and server.key in the data directory, but the settings can point anywhere the server process can read. Confirm the file paths, owners and permissions on each server, since a rotation means replacing these two files and reloading the server.
Connection settings docsCA and client certificate trust
The file named by ssl_ca_file holds the certificate authorities the server trusts when it checks client certificates. That setting defaults to empty, which means the server does not verify client certificates at all. If you use certificate-based logins, confirm that the CA file is set and that the matching pg_hba.conf rules require verification.
SSL TCP docsRevocation lists
Revoked client certificates are rejected only if the server has a revocation list to check against. You can supply one with ssl_crl_file or a directory of lists with ssl_crl_dir. Ask who publishes these lists, how often they are updated, and whether the server reloads them, because a revocation list that is not refreshed gives no protection against a compromised certificate.
Per-host SNI keys
PostgreSQL 19 adds a file, PGDATA/pg_hosts.conf, that maps host names to certificate and key pairs for server-side SNI. Servers that answer for several host names need this file to present the right certificate for each name. Because it is new in PostgreSQL 19, check whether your deployment is on that version before planning around it, and list every host name and key pair in the file.
PostgreSQL 19 release notesClient certificate and key
On the client side, libpq looks for a certificate at ~/.postgresql/postgresql.crt and a key at ~/.postgresql/postgresql.key by default. Both PEM and DER formats are accepted, and the key may be encrypted with any algorithm OpenSSL supports. The documentation states no restriction on key type, only that the key must match the certificate. Each application or user account that connects this way holds its own copy, so rotation has to reach every client.
libpq SSL docsHow do administrators and tools reach PostgreSQL, and what protects each path?
Administrators, applications and tools reach PostgreSQL through client connections that the server admits according to pg_hba.conf. That file is the control point for each connection path. Its line types decide whether a connection must use TLS (hostssl), must use GSSAPI encryption (hostgssenc), or may use plain TCP, and the authentication method on each line decides how the client proves its identity. Methods based on SCRAM, such as scram-sha-256, and certificate authentication (cert) are the ones to review first. Because a host line can admit unencrypted connections, the first inventory step is to list every line in each database's pg_hba.conf and record which path it covers and what protects it.
Stored passwords have their own settings. Under password_encryption, the current documentation defaults to scram-sha-256, and scram_iterations defaults to 4096. The md5 password type is documented as deprecated and slated for removal in a future release, so any role still storing an md5 hash should be found and re-set. On the client side, the channel_binding option defaults to prefer when libpq is built with SSL support, which binds SCRAM authentication to the TLS channel when the server supports it. Confirm these values on the server and on each client library version you run, since older releases differ.
The facts supplied for this topic do not describe a web interface or cloud management plane for PostgreSQL itself. Any console, administration portal or provider API used to manage a PostgreSQL instance belongs to the platform the database runs on, whether that is a managed cloud service, a container platform or a self-hosted host. Those management paths need their own inventory, covering their TLS endpoints, administrator logins and certificates. Ask the platform owner which management interfaces exist and how each one is secured.
How do replication and backups carry cryptography, and what to check?
This sequence confirms which cryptographic settings govern the replication and backup traffic that pg_basebackup produces, and records which checks are supported by PostgreSQL itself and which must be confirmed with your storage or backup platform. The output is a short, dated record for your inventory.
Confirm pg_basebackup uses libpq connection security
Confirm that pg_basebackup makes its base backup over a regular PostgreSQL connection using the replication protocol. Because it runs through libpq, it uses the same connection security settings as other clients, including sslmode, the SSL-related connection parameters and gssencmode. Record the libpq settings in use for the backup host and the server. You know this step is done when you can name the sslmode value, and the SSL or GSSAPI settings, that the backup connection actually negotiates, using the same client configuration your other clients use.
Check that the backup page offers no encryption option
Review the pg_basebackup documentation for the version you run. The page has no option to encrypt the backup output, and it mentions no SSL or TLS settings of its own. Record this as a finding: the backup files written to disk are not encrypted by pg_basebackup itself. Any confidentiality for the backup data must come from the connection security used during the transfer and from the storage layer that holds the files. Note the PostgreSQL version and the documentation date you checked, since the page can change between releases.
Review the manifest checksum algorithm setting
pg_basebackup writes a backup manifest that records a checksum for each file. Check the value set with --manifest-checksums in your backup job. The options listed are NONE, CRC32C, SHA224, SHA256, SHA384 and SHA512, and the default is CRC32C. Record the value your backups use. You know this step is done when the backup job definition shows the chosen option, so the setting is documented rather than assumed from the default.
Recognize that CRC32C does not resist tampering
If your backup job uses the default CRC32C setting, note that the PostgreSQL documentation states CRC32C does not resist malicious changes. CRC32C detects accidental corruption. It is not a control against an attacker who modifies backup files and recomputes the checksum. If your threat model includes deliberate alteration of backups, record this gap and decide whether a stronger SHA-2 option is appropriate for your environment. You know this step is done when the assessment states the detection purpose of the chosen checksum in plain terms.
Note the SHA256 checksum on the manifest itself
The backup manifest always carries a SHA256 checksum of its own contents, regardless of the per-file --manifest-checksums setting. Record this as a fixed property of the manifest, separate from the per-file algorithm you chose in the previous step. Keep in mind that the manifest checksum confirms the manifest content is unchanged only if the reference value is stored and protected somewhere an attacker cannot also alter. You know this step is done when the record distinguishes the fixed SHA256 manifest checksum from the configurable per-file checksum.
Confirm backup storage encryption with the platform
Record backup storage encryption as an item to confirm with your storage or backup platform, not as a PostgreSQL control. The supplied PostgreSQL encryption documentation covers storage encryption at the file system or block level by the operating system, and does not describe transparent data encryption. Ask the team that runs the backup storage whether the volumes, object stores or tape or vault services encrypt data at rest, and which key management and algorithms apply. You know this step is done when a named owner has written down the storage encryption method and the key custody arrangement.
Record the findings with version and date
Write one dated record that lists the libpq connection settings for backups, the absence of a backup encryption option, the manifest checksum value, the CRC32C limitation where it applies, the fixed SHA256 manifest checksum, and the storage encryption owner and method. Include the PostgreSQL version and the date each documentation page was checked. You know this step is done when the record can be handed to an assessor and each entry names its source, whether the PostgreSQL documentation or the storage platform owner.
Which PostgreSQL update and library dependencies carry cryptographic code?
PostgreSQL's cryptography comes from a few places: the OpenSSL build it links against, the pgcrypto extension, the FIPS settings that govern both, and the release line you run. Check each one, because an upgrade or a library change can alter what your server and clients negotiate.
OpenSSL build linked into the server
PostgreSQL does not ship its own TLS code. Both the server and the libpq client rely on the OpenSSL build present at compile time and at run time, so the TLS protocols, cipher suites and key exchange groups you get are those of that OpenSSL library. The server and clients also read the system-wide openssl.cnf, which you can redirect with the OPENSSL_CONF environment variable. Check the OpenSSL version on every server and client host, and record any OPENSSL_CONF override, because either one can change negotiated behavior without a PostgreSQL upgrade.
SSL TCP docspgcrypto extension and its OpenSSL dependency
The pgcrypto extension requires OpenSSL and provides digest functions, crypt types, symmetric encryption and PGP functions. Its PGP functions support symmetric and public-key encryption with DSA, Elgamal or RSA keys, but the documentation lists no signing support. Inventory where pgcrypto is installed in each database, because its public-key functions handle data in ways the connection settings do not cover. Confirm which algorithms your applications call, since the set of functions depends on the extension version you install.
pgcrypto docsFIPS settings for pgcrypto and OpenSSL
The setting pgcrypto.builtin_crypto_enabled defaults to on and can be set to fips, which disables the built-in gen_salt() and crypt() functions when OpenSSL is in FIPS mode. The function fips_mode() reports whether OpenSSL is in FIPS mode. Test both settings on a staging copy, because a FIPS-mode OpenSSL also changes which TLS groups are allowed, and the documentation states that X25519 is not permitted in FIPS mode. Record the FIPS state of each host, since it depends on the OpenSSL build and its configuration.
pgcrypto docsPostgreSQL release line and support status
As of 2026-12-03, the PostgreSQL versioning page lists 18.7 and 19.0 as supported and lists major version 14 as no longer supported. Each major version is supported for 5 years after its first release, so a server on 14 receives no further fixes. The PostgreSQL 19 and 18 release notes do not mention post-quantum algorithms, so the release you run determines your TLS settings and the OpenSSL support you can expect. This card states what the facts describe. PostgreSQL is software, and the facts describe no firmware or appliance signing for it.
Versioning pageWhat should the inventory record for each PostgreSQL cryptographic item?
This table defines the fields to record for each PostgreSQL cryptographic item, such as a server certificate, a client certificate or a pgcrypto function. Use the first column to find the field, then record the value your environment uses. The fields tie each item to a version, a location, an algorithm and a confidentiality period, so the inventory can be reviewed and updated later.
| Field | What to record | Example value |
|---|---|---|
| Product and version | Product name, major version, minor version and patch level, taken from the running server or the installed package | PostgreSQL 18, minor release 18.7 (illustrative of the field format, confirm your own build) |
| Owner | The team or person responsible for the item and for approving changes to it | Database platform team, named contact (illustrative) |
| Location | Host, data directory and configuration file where the item is set or stored | Host db01, data directory under PGDATA, server.crt and server.key in the data directory (default file names) |
| Protocol and setting | The connection or feature the item protects and the server or client setting that controls it | TLS on client connections, ssl setting, ssl_min_protocol_version, ssl_groups |
| Algorithm and key size as configured | The algorithm and key size in use, read from the certificate, key or setting value, not from memory | Confirm from your certificate, for example RSA 2048 or an elliptic curve (values depend on your deployment) |
| Certificate issuer and expiry | Who issued the certificate and its expiry date, for server and client certificates | Issuer name and notAfter date from the certificate file (confirm per certificate) |
| Configurable or fixed | Whether the setting can be changed by the administrator or is fixed by the build or edition | Configurable: ssl_groups. Fixed: confirm with the build options in your environment |
| Confidentiality period | How long the protected data must stay confidential, which sets how urgently the item is reviewed | Set by the data owner, for example years for records (illustrative, the owner decides) |
Which PostgreSQL items depend on public-key algorithms and so fall in scope for migration?
The items that fall in scope for a post-quantum migration are the ones that rely on public-key algorithms. In a PostgreSQL deployment, that means TLS key exchange, server and client certificate signatures, client certificate verification, and the public-key functions in pgcrypto. The TLS key exchange is set by ssl_groups on the server, which defaults to X25519:prime256v1 in PostgreSQL 19. Both of those groups are elliptic-curve key exchanges, so the default configuration sits in scope. Certificates loaded through ssl_cert_file, ssl_key_file and ssl_ca_file carry public-key signatures, and the certificate verification on the client side is controlled by sslmode. Client certificate checks through clientcert=verify-ca or verify-full on hostssl lines in pg_hba.conf, and the cert authentication method, also depend on those keys. The pgcrypto PGP public-key functions are in scope too, since the documentation lists DSA, Elgamal and RSA keys for them.
Other items use symmetric primitives or hashes, and they are not public-key dependencies in the same way. The scram-sha-256 password exchange, which is the default password_encryption setting, relies on hashing rather than public-key cryptography. The pgcrypto digest and symmetric functions, such as the SHA-2 family and aes, fall in the same group. The backup manifest checksum written by pg_basebackup also uses hashes, with a SHA256 checksum of the manifest's own contents, though its per-file checksums default to CRC32C. The GSSAPI path is harder to classify. Its encryption is an alternative to TLS through gssencmode and hostgssenc, and whether it depends on public-key algorithms depends on the Kerberos setup in your environment, which you should confirm with the people who run it.
Keep this list as a pointer, not as a finished inventory. The dependency detail for each item, and the order in which to migrate them, are covered on the sibling pages on dependencies and upgrade needs. Before you rely on any entry here, confirm the PostgreSQL version and the OpenSSL build that the server and each client actually use, because the TLS behavior depends on both.
How do you collect this information from a running PostgreSQL system?
This sequence gathers the server settings, certificate files, access rules, library versions and extension state that show where PostgreSQL uses cryptography today. Each step ends with a record that an engineer or security lead can check against the configuration on the server.
Export effective server settings
Run SHOW or query pg_settings for ssl, ssl_groups, ssl_ciphers, ssl_tls13_ciphers, ssl_min_protocol_version, password_encryption and scram_iterations on each server, using the configuration names as documented. Use the effective values, not the defaults in the documentation, because a postgresql.conf or ALTER SYSTEM change can override them. Record the server version with SHOW server_version. The step is complete when each setting is saved with its value, the server version and the host it came from. In PostgreSQL 19, ssl defaults to off, so a value of off on a production server needs an explanation.
List and read certificate files
Read the paths in ssl_cert_file, ssl_key_file and ssl_ca_file from the running configuration, then inspect each certificate with openssl x509 to record the issuer, subject, expiry date and key type. The defaults are server.crt and server.key in the data directory, and ssl_ca_file is empty by default, which means no client certificate verification. Confirm that the private key matches the certificate. Do not copy private key material into the inventory. The step is complete when every certificate file in use has a row with its issuer and expiry date.
Review pg_hba.conf for TLS rules
Open pg_hba.conf and list every hostssl, hostgssenc and cert line, along with each line's address range, database, user and method. Note the clientcert option on hostssl lines, since verify-ca or verify-full means client certificates are checked against ssl_ca_file. Also note any oauth method, which PostgreSQL 18 introduced. Lines that allow host or hostnossl connections without TLS should be listed separately. The step is complete when each rule that involves TLS, GSSAPI encryption or certificates appears in the inventory with its file and line number.
Check pg_hosts.conf on PostgreSQL 19
On PostgreSQL 19 servers, check whether PGDATA/pg_hosts.conf exists, since it maps host names to certificate and key pairs for server-side SNI. For each entry, record the host name and the certificate and key file paths, then inspect those certificates the same way as in the previous step. If the file is absent, record that SNI is not configured on this server. The step is complete when the presence or absence of pg_hosts.conf is recorded for each PostgreSQL 19 server, and any entries are listed with their certificate details.
Confirm OpenSSL version and FIPS mode
Find the OpenSSL version that the server binary is linked against, for example with ldd or otool -L on the postgres executable, and record the version string. Then run SELECT fips_mode(); to see whether OpenSSL is in FIPS mode. If fips_mode() returns true, check ssl_groups, because the documentation states that X25519 is not allowed in FIPS mode. The step is complete when the linked OpenSSL version, the FIPS result and any ssl_groups conflict are written down for each server. Confirm the build's OpenSSL version with the team that compiled or packaged the server, since the binary may be linked to a different library than the system default.
Check pgcrypto installation and settings
Run SELECT * FROM pg_extension WHERE extname = 'pgcrypto'; in each database that might use it, since extensions are installed per database. If it is present, record the installed version and check pgcrypto.builtin_crypto_enabled with SHOW. A value of fips disables the built-in gen_salt() and crypt() functions when OpenSSL is in FIPS mode. Search application code and stored functions for calls to pgcrypto functions such as digest, encrypt, decrypt, and PGP functions, because the inventory must show what the data uses. The step is complete when each database lists pgcrypto as present or absent, with its version and the functions the applications call.
Send vendor questions for hidden items
Some items are not visible in configuration. The pg_basebackup documentation describes no backup encryption option and no SSL or TLS settings beyond the libpq connection security used for the backup stream, so the storage encryption path for backups must be confirmed with the team that runs the backup tooling and the storage platform. Also confirm how replication links are protected, and any data at rest handling outside the server. Send the questions in writing to the PostgreSQL vendor or distributor, and record the date sent and the reply. The step is complete when each open item has a named owner, a question sent in writing and a response on file or a note that none has arrived.
Is PostgreSQL quantum safe, and what should inventory owners ask?
Is PostgreSQL quantum safe?
The PostgreSQL documentation checked on 2026-12-03 describes no PostgreSQL-specific post-quantum feature, so the project itself does not establish that PostgreSQL is quantum safe. The one supported path is indirect: the ssl_groups setting passes group names to OpenSSL, so a hybrid group such as X25519MLKEM768 can be negotiated only when the linked OpenSSL build supports it. A PostgreSQL 18 test shared on the pgsql-hackers list on 2026-02-19 showed this working with OpenSSL 3.5. The default ssl_groups value, X25519:prime256v1, contains no post-quantum group. Record PostgreSQL as having no native post-quantum feature, and record the OpenSSL version and the ssl_groups value you actually run.
Which PostgreSQL version should I record in the inventory?
Record the exact minor version you run, not only the major version. As of 2026-12-03 the PostgreSQL versioning page lists 18.7 (first released 2025-09-25) and 19.0 (first released 2026-11-19) as supported. It lists 14 as no longer supported. Each major version receives support for 5 years after its first release. Also record the OpenSSL version the server and clients link against, because that library, not PostgreSQL, decides which key exchange groups exist. Confirm the version with SHOW server_version; and the library with openssl version on each host, and check the support table again before you finalize the record.
Does inventorying PostgreSQL cost money?
PostgreSQL itself is open source, so the inventory work carries no license fee. The cost is labor: someone must collect the version, the TLS settings (ssl, ssl_min_protocol_version, ssl_groups, ssl_tls13_ciphers), the client certificate settings, the pg_hba.conf rules, the password storage method, and the OpenSSL build on each cluster. That work is mostly one-time for the first pass and recurs whenever a cluster is added, upgraded or reconfigured. Cost rises with the number of clusters, the number of client applications, and how many teams own the connection paths. Ask any outside provider for a written scope that lists which hosts, clusters and clients are covered, and what evidence they will deliver.
What breaks if I change a PostgreSQL TLS setting?
Changing a TLS setting can break connections that currently work, so test before you change production. Raising ssl_min_protocol_version can cut off older clients. Changing ssl_groups can cause a handshake to fail if a client does not offer the group you select. Setting sslmode to verify-full on a client will reject servers whose certificate chain or host name does not match. Each of these settings is covered on a sibling page: see the topics on PostgreSQL requirements for post-quantum TLS, client and driver compatibility, and enablement of connections, drivers and build options. Use those pages to plan the test and the rollback before you edit any setting.
What should I ask the PostgreSQL project or my vendor?
Ask for written answers on a short, specific list. First, ask whether any PostgreSQL release, including 18.7 and 19.0, adds a post-quantum key exchange or signature feature of its own. Second, ask whether a backport of the ssl_groups fix discussed on pgsql-hackers is planned for versions before 18, and whether a committer has answered that question. Third, ask which OpenSSL versions and FIPS settings the vendor supports with each group. Fourth, for managed or packaged builds, ask which OpenSSL version is bundled and how it is updated. Record each answer with its date and the source. If the vendor has published nothing on a point, record that fact with the date you checked it.
Can my team gather this inventory ourselves or do we need outside help?
Your team can gather most of it alone, because the settings are readable from the server and the documentation is public. Run SHOW ssl;, SHOW ssl_groups;, SHOW ssl_min_protocol_version;, SHOW password_encryption; and SHOW server_version; on each cluster, read pg_hba.conf, check the client sslmode and certificate paths in each application, and record the OpenSSL version on every host. Outside help is worth considering when many clusters or client applications are involved, when the evidence must meet a formal assessment, or when no one on the team owns the client connection paths. Whatever you choose, agree the scope and the deliverables in writing before work begins.
Where does PostgreSQL get its TLS and certificate handling?
PostgreSQL does not implement TLS itself. It relies on OpenSSL on both the server and the client, and it reads the system-wide openssl.cnf, which can be redirected with the OPENSSL_CONF environment variable. On the server, TLS is controlled by ssl, which defaults to off in PostgreSQL 19, and the certificate and key files server.crt and server.key in the data directory. Client verification is set by libpq sslmode, which defaults to prefer, a mode the documentation says makes no sense from a security point of view and keeps only for backward compatibility. Record each of these settings per cluster, because each one changes which handshakes can succeed.
How do client, replication and backup paths reach PostgreSQL's cryptographic settings?
The diagram starts at the libpq client, which applies its own sslmode, channel_binding and gssencmode settings before opening a connection to the server. The server hands that connection to OpenSSL and checks it against pg_hba.conf, where hostssl, hostgssenc and the cert or scram-sha-256 methods decide what is accepted, and it reads certificate and key files named by ssl_cert_file, ssl_key_file and ssl_ca_file. pg_basebackup uses the same libpq connection and replication protocol, so the same settings apply to backups, while its manifest checksums are set separately with --manifest-checksums. pgcrypto sits above these paths as a SQL function layer that uses OpenSSL directly. Check each edge against the setting named on it and the PostgreSQL version you run.
Client, server, replication and backup paths with the settings each edge depends on.
How DeployOpen helps build and maintain a PostgreSQL cryptographic inventory
DeployOpen works on PostgreSQL connections, replication and backups as separate inventory items, because each uses different settings and tools. The work starts with a written scope and ends with records your security and compliance teams can review and keep current.
How we scope
- Scope is agreed in writing before work starts, listing which PostgreSQL versions, clusters and hosts are covered.
- The written scope names which of client connections, replication links and backup paths are included in the inventory.
- Ongoing inventory upkeep can be set up as a retainer, if your PostgreSQL estate changes often.
How we build
- We record the server ssl, ssl_groups, ssl_min_protocol_version and pg_hba.conf settings for each cluster in the inventory.
- We check the libpq sslmode and channel_binding settings used by client applications, since these set how server certificates are verified.
- We record how pg_basebackup is run, including the manifest checksum setting and the connection security it inherits.
How we hand over
- You receive an inventory document listing each connection, replication and backup path with its version and configuration.
- Each entry notes the source of every setting, so reviewers can check it against the PostgreSQL documentation for your version.
- Items that depend on OpenSSL build options or OpenSSL version are flagged, so you can confirm them in your own environment.
How we support
- Inventory entries are reviewed when PostgreSQL versions, OpenSSL builds or pg_hba.conf rules change in your environment.
- Vendor statements from the PostgreSQL project are rechecked at each review, and any changes are recorded with their date.
- Ongoing support and continuous review are available as a retainer, with scope and deliverables agreed in writing.

