Base de conhecimento

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®, o nosso viking, a ler a sua lista de verificação ao lado de um índice de artigos com um aberto.

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.

Este artigo ainda não foi traduzido para o seu idioma, pelo que está a ler a versão em inglês.

Mais recentes do blogue

O que temos escrito sobre alojamento, SEO e gestão de sites em escala.

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.

Ler o artigo →

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.

Ler o artigo →

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.

Ler o artigo →

Ler o blogue →

Ainda com dúvidas?

O suporte está incluído em todos os planos, o apoio está disponível 24 horas por dia e pode escrever-nos em qualquer um dos nossos 59 idiomas — respondemos-lhe no seu.

Contactar o suporte Todos os artigos