【问题标题】:Certificate path unreachable for SSL in Java/ClojureJava/Clojure 中 SSL 的证书路径无法访问
【发布时间】: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来放松一下吗?

感谢您的建议..

【问题讨论】:

标签: java validation security ssl clojure


【解决方案1】:

http/get 接受“不安全?”选项:

@(http/get "http://gombaszog.sk" {:insecure? true})

【讨论】:

猜你喜欢
  • 2015-03-15
  • 1970-01-01
  • 2011-11-03
  • 1970-01-01
  • 1970-01-01
  • 2012-06-20
  • 2014-06-13
  • 2020-05-18
  • 2022-08-17
相关资源
最近更新 更多