Handles PostgreSQL SSL negotiation protocol and socket upgrade.
Builds the effective SSL configuration for a connection.