postgresql - How to use psql with SSL key? -
how connect postgresql server using psql ssl key ssh -i $key?
you can use pgsslcert , pgsslkey environment variables if you're not using default locations.
for example:
pgsslmode=verify-full pgsslcert=cert.pem pgsslkey=key.pem psql -h servername remember use verify-full sslmode, since other ones won't protect against mitm attacks.
Comments
Post a Comment