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 e Link Building a partir da Camada de Alojamento: A Visão de um Operador em 2026

Como o alojamento molda a indexação e a equidade de ligações em 2026: manter páginas indexadas, avaliar domínios antigos antes de construir sobre eles, criar ligações sem rasto de pegada e uma perspetiva realista sobre o que a infraestrutura pode e não pode fazer pelo SEO.

Ler o artigo →

Tornar o WordPress Rápido e Seguro: Uma Lista de Controlo de Desempenho e Plugins

Uma lista de controlo prática para um WordPress rápido e seguro: cache ao nível do servidor, uma cache de objetos por site, os poucos plugins que vale a pena utilizar, manter a infraestrutura atualizada e as páginas do WooCommerce que nunca deve colocar em cache.

Ler o artigo →

Como escolher alojamento web gerido em 2026: Guia do comprador

O que realmente separa um bom alojamento gerido de uma máquina barata com um painel de controlo — migrações, cópias de segurança, isolamento, colocação em cache real e escalabilidade genuína — e como avaliá-lo antes de se comprometer.

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