1. I need to switch on "ssl" attribute in postgresql.conf and compile the server again. 2. In pg_hba.conf, I have to use "hostssl" for all client connections.
Also, after setting above configurations, if I connect to my database using "psql -d Techdb -U postgres" then automatically it will be SSL connection or I need to specify any option from client side?