Knowledge base

Verifying your managed database's server certificate

Download the CA certificate and connect with sslmode=verify-full, so your application checks it is talking to your database and not merely encrypting.

Zinn®, our Viking, reading his checklist beside an index of articles with one open.

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.

Latest from the blog

What we have been writing about hosting, SEO and running sites at scale.

SEO and Link Building from the Hosting Layer: A 2026 Operator's View

How hosting shapes indexing and link equity in 2026: keeping pages indexed, vetting aged domains before you build on them, link building without a footprint, and an honest line on what infrastructure can and cannot do for SEO.

Read the post →

Making WordPress Fast and Secure: A Performance and Plugin Checklist

A practical checklist for fast, secure WordPress: server-level caching, a per-site object cache, the handful of plugins worth running, keeping the stack current, and the WooCommerce pages you must never cache.

Read the post →

How to Choose Managed Web Hosting in 2026: A Buyer's Guide

What actually separates good managed hosting from a cheap box with a control panel — migrations, backups, isolation, real caching and honest scaling — and how to judge it before you commit.

Read the post →

Read the blog →

Still stuck?

Support is included on every plan, the desk is open 24 hours a day, and you can write to us in any of our 58 languages — we answer you in yours.

Contact support All articles