SSL required 🐘 PostgreSQL

server does not support SSL, but SSL was required / no pg_hba.conf entry … no encryption

The client and server disagree about SSL — the client requires it but the server doesn’t offer it, or the server requires it and the client didn’t use it.

Seen on: PostgreSQL

Meaning

sslmode=require on a local server without SSL fails; managed databases (RDS, Azure, Supabase) often require SSL, rejecting non-SSL clients with “no encryption”.

Common causes

  • sslmode=require against a server without SSL
  • Managed DB requiring SSL while the client uses sslmode=disable
  • Self-signed server cert with sslmode=verify-full

⚡ Quick fix

  1. Set sslmode=disable for local dev servers
  2. Use sslmode=require (and the provider CA for verify-full) for managed databases

Detailed fix by platform

PostgreSQL

  1. postgres://app:pass@db.example.com:5432/app?sslmode=require

How to diagnose

  1. Client — sslmode?
  2. Server — ssl on / pg_hba hostssl?

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.