Using psql to connect to postgresql in ssl mode
I am trying to configure ssl certificate for postgreSQL server. I have created a certificate file (server.crt) and key (server.key) in data directory and update the parameter SSL to "on" to enable secure connection. I just want only the server to be authenticated with server certificates on the client side and dont require the authenticity of client at server side. I am using psql as a client to connect and execute the commands. I am using PostgreSQL 8.4 and linux. I tried with the below command to connect to server with ssl enabled psql "postgresql://localhost:2345/postgres?sslmode=require"