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 SS
psql -h -p -U -d
and update /var/lib/pgsql/10/data/pg_hba.conf to change the auth method to cert. Check the following link for more information:
/var/lib/pgsql/10/data/pg_hba.conf
cert
https://www.postgresql.org/docs/9.1/auth-pg-hba-conf.html