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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -