“HostName not verified error message” on SSL connection in postgresql

后端 未结 3 1852
粉色の甜心
粉色の甜心 2021-02-13 02:11

I created server.crt, server.key and root.crt files on Centos 7 and put the same onto the C:\\Users\\xxxx\\AppData\\Roaming\\postgre

3条回答
  •  情歌与酒
    2021-02-13 02:46

    If you don't care about hostname verification while still wanting to use a certificate, you can use the additional parameter sslmode=verify-ca as a connection parameter or as part of the URL to disable hostname verification while retaining certificate verification.

提交回复
热议问题