DBeaver – 无法更新驱动程序: “由于证书问题,网络不可用。”

huangapple go评论179阅读模式
英文:

DBeaver - unable to update driver: "Network unavailable due to certificate issue."

问题

我尝试更新我的PostgreSQL驱动程序时总是出现这个错误。

我在StackOverflow上找到了一些相关问题,但所有的解决方法似乎都过时或者不适用于最新版本的DBeaver 23.0.1。在“.ini”文件中的“java...”字符串的许多引用都不在那里。

错误信息:

网络错误
原因:由于证书问题,网络不可用。尝试在“首选项->连接”中更改设置“使用Windows信任存储”,然后重新启动DBeaver。如果您没有覆盖信任存储,这可能有所帮助。
javax.net.ssl.SSLHandshakeException:PKIX路径构建失败:
sun.security.provider.certpath.SunCertPathBuilderException:无法找到请求目标的有效证书路径。

英文:

Always getting this error when I try to update my PostgreSql driver.

I found few StackOverflow questions about it but all solutions seems outdated and/or does not works for the most recent version of DBeaver 23.0.1. Many references to "java..." string in ".ini" are just not there.

The error:
> Network error
>
> Reason: Network unavailable due to certificate issue. Try changing the
> setting Use Windows trust store in Preferences->Connections and
> restart DBeaver. It might help if you haven't overridden trust store.
> javax.net.ssl.SSLHandshakeException:PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to
> find valid certification path to requested target

答案1

得分: 1

我建议首先检查这个答案这里。选项1通常应该解决问题。

如果仍然不起作用,尝试安装新版本,如果你的版本较旧。

还有可能是被代理阻止。在这种情况下,你需要添加一个有效的.crt文件。根据代理的不同,生成一个.crt文件(.pem类型应该可以),然后将文件添加到相关目录(例如,
/etc/ssl/certs/<crt>
)。
保存并重新启动应该解决代理问题。

英文:

I would suggest checking this answer here first. Option 1 should normally fix it.

If it still doesn't work then try installing a newer version if you are on an old one.

It is also possible to be blocked by a proxy. In such case, you would need to add a valid .crt file. Depending on the proxy, generate a .crt file ( should be fine with .pem type) and then add the file to the relevant directory (e.g.,

/etc/ssl/certs/<crt>

).
save and restart should fix the proxy issue.

huangapple
  • 本文由 发表于 2023年3月31日 23:22:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/75900198.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定