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

**Code:** `SSL required` · **Category:** PostgreSQL · **Seen on:** PostgreSQL

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.

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/postgresql/server-does-not-support-ssl)
