Set up PostgreSQL with server certificate verification

Use a PostgreSQL server certificate trusted by Mainbase, test the verified connection, and check whether the setup needs custom certificates.

Use this setup when your database administrator requires TLS with server certificate verification and has confirmed that the server uses a certificate authority trusted by Mainbase.

Test and save the verified connection

  1. Start a PostgreSQL connection from Settings → Workspace → PostgreSQL. In Host, enter the database hostname provided by the administrator. Fill in the database and read-only account details.
  2. In SSL Mode, choose the verification option specified for the connection. Mainbase currently uses the same certificate verification settings for Require + Verify CA and Require + Verify Full. Leave the certificate fields empty when the server’s certificate authority is already trusted and the database requires no client certificate.
  3. Select Next to test the connection. If the test reports a certificate error, confirm the hostname and trust requirements with your database administrator.
  4. After a successful test, select Next, name the connection, and select Create Integration. Check it in PostgreSQL settings, then create a virtual table from an approved table or view.

Check whether the database requires custom certificates

The setup displays CA Certificate (PEM), Client Certificate (PEM), and Client Private Key (PEM) as single-line fields. Pasting multiline PEM removes its line breaks. A database that requires a custom CA bundle or client certificate needs a setup that accepts complete PEM values. PostgreSQL driver TLS reference

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?