Invalid certificate path for SSL in Java / Clojure

I use http-kit in Clojure and when accessing the https:// page, I get 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]}] 

I tried to find a simple solution, and I see that there are recommendations for its software solution. Isn’t there an easy way, I just want to get a web page. In this case, I don’t even care about security. Can I do Java to relax this?

Thanks for the suggestions ..

+7
java security validation ssl clojure
source share
1 answer

Does http / get take "unsafe"? option:

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

All Articles