SSL required PostgreSQL Origin: Data Last updated 14 Oct 2026

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.

Exact message you may see server does not support SSL, but SSL was requiredno encryption
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 not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Data. Errors that are often confused with or caused by this one (click to open):

1013 — Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch (Cloudflare)101328P01 — PostgreSQL: FATAL: password authentication failed for user (PostgreSQL)28P013D000 — FATAL: database "x" does not exist (PostgreSQL)3D000421 — HTTP 421 Misdirected Request (HTTP)42153300 — FATAL: sorry, too many clients already / remaining connection slots are reserved for non-replication superuser connections (PostgreSQL)53300CERTIFICATE_VERIFY_FAILED — SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate (API)CERTIFICATE_VERIFY_FA…Cloudflare Origin CA not trusted — NET::ERR_CERT_AUTHORITY_INVALID with a Cloudflare Origin Certificate (record not proxied) (Cloudflare)Cloudflare Origin CA …connection closed — server closed the connection unexpectedly — This probably means the server terminated abnormally before or while processing the request. (PostgreSQL)connection closedSSL requi…

Explore the map of this error Full error map →

🧠 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.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.