jdbc equivalent to libpq "hostaddr" connection string parameter Is there an equivalent to libpq's hostaddr parameter in the JDBC connection string? I want to connect via a local TCP proxy (on 127.0.0.1), but use ssl=verify-full with the CA bundle of the remote Postgres instance.

It doesn't seem to be obvious how to do this in the JDBC driver without some sort of class overloading of the HostVerifier?  Anyone tried this before?
If your proxy is just a TCP forwarder, like iptables DNAT, your postgresql certificate has to include a SubjectAlternativeNames with the IP address you connect to (the proxy address).
Otherwise, if your proxy decode SSL and creates a different connection to postgresql, then the same change should be made to the proxy server.