Files
supabase/apps/docs/content/guides/database/psql.mdx
7e76ef25f7 fix(docs): link to Database Settings for SSL certificate download (#51327)
## Problem

On the psql guide, the "Connecting with SSL" section says "Download your
[SSL certificate](#connecting-with-ssl)", but that link points back to
the same section. It never says where the certificate is, so readers
can't find the download. Reported in the issue linked below.

## Solution

Point the link at the Dashboard's Database Settings page
(`/dashboard/project/_/database/settings`), where the SSL certificate
download lives. This is the same link other database guides already use
(for example the DBeaver and Beekeeper Studio guides). One line changed
in `apps/docs/content/guides/database/psql.mdx`.

## Review instructions

1. Open `apps/docs/content/guides/database/psql.mdx`, "Connecting with
SSL".
2. Check that "Database Settings" now links to
`/dashboard/project/_/database/settings` instead of the same page.

---------

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:26:08 +00:00

25 lines
1.0 KiB
Plaintext

---
id: 'psql'
title: 'Connecting with PSQL'
breadcrumb: 'GUI Quickstarts'
hideToc: true
---
[`psql`](https://www.postgresql.org/docs/current/app-psql.html) is a command-line tool that comes with Postgres.
## Connecting with SSL
You should connect to your database using SSL wherever possible, to prevent snooping and man-in-the-middle attacks.
You can obtain your connection info and Server root certificate from your application's dashboard:
![Connection Info and Certificate.](/docs/img/database/database-settings-ssl.png)
Download your SSL certificate from [Database Settings](/dashboard/project/_/database/settings) to `/path/to/prod-supabase.cer`.
Find your connection settings. Go to the project [**Connect** panel](/dashboard/project/_?showConnect=true&method=session) and copy the URL from the `Session pooler` section, and copy the parameters into the connection string:
```shell
psql "sslmode=verify-full sslrootcert=/path/to/prod-supabase.cer host=[CLOUD_PROVIDER]-0-[REGION].pooler.supabase.com dbname=postgres user=postgres.[PROJECT_REF]"
```