pg_dump with ssl certificates
The following worked for me:

pg_dump "port=&lt;port&gt; host=&lt;host&gt; user=&lt;user&gt; dbname=&lt;db&gt; sslcert=&lt;cert&gt; sslkey=&lt;key&gt; sslrootcert=&lt;ca.crt&gt; sslmode=verify-ca" -f &lt;file&gt;