server: PostgreSQL 18.7 (Debian 18.7-1.pgdg13+5) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit client: psql (PostgreSQL) 18.7 (Debian 18.7-1.pgdg13+5) (OpenSSL 3.5.9 29 Sep 2026 (Library: OpenSSL 3.5.9 29 Sep 2026)) == A. ssl = on, pg_hba.conf has hostssl lines only disable | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "postgres", database "postgres", no encryption allow | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 prefer (libpq default) | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 require | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 verify-ca, no root cert | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: root certificate file "/tmp/pgssl.uz7vIT/none.crt" does not exist Either provide the file, use the system's trusted roots with sslrootcert=system, or change sslmode to disable server certificate verification. verify-ca, right CA | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 verify-ca, wrong CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: SSL error: certificate verify failed verify-full, right CA, localhost | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 verify-full, right CA, 127.0.0.1 | psql: error: connection to server at "127.0.0.1", port 55432 failed: server certificate for "localhost" (and 2 other names) does not match host name "127.0.0.1" verify-full, tunnel style (hostaddr) | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 verify-full, sslrootcert=system | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: SSL error: certificate verify failed require + sslrootcert=right CA | TLS TLSv1.3 TLS_AES_256_GCM_SHA384 require + sslrootcert=wrong CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: SSL error: certificate verify failed require, a user no line matches | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: FATAL: no pg_hba.conf entry for host "127.0.0.1", user "nobody", database "postgres", SSL encryption == B. ssl = off (server not configured for TLS), pg_hba.conf host lines disable | no TLS allow | no TLS prefer (libpq default) | no TLS require | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required verify-ca, no root cert | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required verify-ca, right CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required verify-ca, wrong CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required verify-full, right CA, localhost | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required verify-full, right CA, 127.0.0.1 | psql: error: connection to server at "127.0.0.1", port 55432 failed: server does not support SSL, but SSL was required verify-full, tunnel style (hostaddr) | psql: error: connection to server at "127.0.0.1", port 55432 failed: server does not support SSL, but SSL was required verify-full, sslrootcert=system | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required require + sslrootcert=right CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required require + sslrootcert=wrong CA | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required require, a user no line matches | psql: error: connection to server at "localhost" (127.0.0.1), port 55432 failed: server does not support SSL, but SSL was required