postgresql – DataGrip Postgres SSL错误:sun.security.valida
发布时间:2020-12-13 16:13:32 所属栏目:百科 来源:网络整理
导读:DataGrip不会连接到我的Postgres实例,但我可以通过终端上的psql连接正常: psql -h dbhost.com reps usernamePassword for user... (connects) 但是,IntelliJ DataGrip抛出: Connection to username@dbhost.com failed.SSL error: sun.security.validator.V
DataGrip不会连接到我的Postgres实例,但我可以通过终端上的psql连接正常:
psql -h dbhost.com reps username >Password for user... (connects) 但是,IntelliJ DataGrip抛出: Connection to username@dbhost.com failed. SSL error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 它使用的连接字符串是jdbc:postgresql://dbhost.com:5432 / dbname
尝试在数据库属性窗口的SSH / SSL选项卡中禁用SSL复选框.
然后将?sslmode = require附加到“常规”选项卡中的URL,以便它读取如下内容:JDBC:在PostgreSQL://本地主机:5432 /代表sslmode =需要 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |