Databases → your database → Connection.
Why verify, not just encrypt
Every connection to a managed database is encrypted. Encryption alone does not prove who is on the other end: sslmode=require would happily encrypt a conversation with an impostor. sslmode=verify-full also checks that the server's certificate was signed by a CA you trust and that it names the host you connected to. That is the setting in the connection string we give you.
Download the CA certificate
On the Connection card press Download CA certificate. You get zinn-managed-db-ca.crt, the root that signs every managed database server we run, so one file works for all of your databases. The card shows its SHA-256 fingerprint; compare it with the file if you copy it between machines. The same certificate is available from the API: GET /v1/databases/{id}/ca-certificate.
Connect with it
PostgreSQL (psql, libpq and anything built on it):
psql "host=HOST port=PORT dbname=DBNAME user=USER \
sslmode=verify-full sslrootcert=zinn-managed-db-ca.crt"
- Python (psycopg): add
sslmode="verify-full", sslrootcert="zinn-managed-db-ca.crt".
- Node.js (pg):
ssl: { ca: fs.readFileSync("zinn-managed-db-ca.crt") } (certificate checks are on by default; never set rejectUnauthorized: false).
- JDBC:
?sslmode=verify-full&sslrootcert=/path/to/zinn-managed-db-ca.crt.
- Go (pgx):
sslmode=verify-full sslrootcert=zinn-managed-db-ca.crt in the connection string.
Use the host name shown on the Connection card, never an IP address: the certificate names the host, and verification fails for an address.
If the card says the certificate is being upgraded
Databases created before 27 November 2026 started with a self-signed certificate of their own. Connections to them are encrypted; use sslmode=require until the card shows the download button, which means the server now presents a certificate our CA signs. Nothing else about the database changes, and the connection string stays the same.
If verification fails
certificate verify failed or self-signed certificate: the client is not using the downloaded file. Check the path you gave sslrootcert.
server certificate does not match host name: you connected by IP address or by an old name. Use the host on the Connection card.
If both are right and it still fails, open a ticket and include the exact error.