【发布时间】:2015-07-08 19:53:54
【问题描述】:
我在 Clojure 中使用 http-kit,当访问 https:// 页面时,我得到 unable to find valid certification path to requested target:
:cause unable to find valid certification path to requested target
:via
[{:type javax.net.ssl.SSLHandshakeException
:message General SSLEngine problem
:at [sun.security.ssl.Handshaker checkThrown Handshaker.java 1375]}
{:type javax.net.ssl.SSLHandshakeException
:message General SSLEngine problem
:at [sun.security.ssl.Alerts getSSLException Alerts.java 192]}
{:type sun.security.validator.ValidatorException
:message PKIX path building failed: sun.security.provider.certpath.SunCertPathBui
lderException: unable to find valid certification path to requested target
:at [sun.security.validator.PKIXValidator doBuild PKIXValidator.java 387]}
{:type sun.security.provider.certpath.SunCertPathBuilderException
:message unable to find valid certification path to requested target
:at [sun.security.provider.certpath.SunCertPathBuilder build SunCertPathBuilder.j
ava 145]}]
我试图找到一个简单的解决方案,我发现有建议以编程方式解决它。是不是有一些简单的方法,我只是想得到一个网页。在这种情况下,我什至不关心安全性。我可以做java来放松一下吗?
感谢您的建议..
【问题讨论】:
-
您要访问哪个 https 页面?
-
@DanielCompton,我是gombaszog.sk
-
我无法提供任何代码(因此不会将其作为答案发布),但最近有一篇关于 https requests with client certificates in Clojure 确切主题的文章可能会或可能会有所帮助。
标签: java validation security ssl clojure