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

后端 未结 3 1855
粉色の甜心
粉色の甜心 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:44

    I am using JetBrains Data Grip to access Postgres dbs on Heroku, and got the same error in the latest JDBC driver version. That's how I solved it (using answers provided here).

    Set the following in the Advanced tab:

    ssl=true

    sslmode=require

    sslfactory=org.postgresql.ssl.NonValidatingFactory

    (I updated sslmode value from verify-ca to required because it works with Heroku Postgres now)

提交回复
热议问题