Using psql to connect to PostgreSQL in SSL mode

后端 未结 7 1457
攒了一身酷
攒了一身酷 2021-01-30 07:50

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

7条回答
  •  不知归路
    2021-01-30 08:45

    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:

    https://www.postgresql.org/docs/9.1/auth-pg-hba-conf.html

提交回复
热议问题