Python standard library function ssl.wrap_socket() is deprecated because it doesn't handle server host names. Since pg8000 uses that function, it can't properly secure connections to Postgres. In contrast, psycopg2 exposes libpq's "sslmode" parameter, which when set to "verify-full" verifies server hostname.
Python standard library function ssl.wrap_socket() is deprecated because it doesn't handle server host names. Since pg8000 uses that function, it can't properly secure connections to Postgres. In contrast, psycopg2 exposes libpq's "sslmode" parameter, which when set to "verify-full" verifies server hostname.