4

Clojure seems to support HTTP with clojure.contrib.http.agent, but how can I read from HTTPS?

yazz.com
  • 57,320
  • 66
  • 234
  • 385
  • 3
    http://rosettacode.org/wiki/HTTPS#Clojure - does that help? – Jeff Foster Jun 08 '11 at 15:39
  • I "get javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target " when I try that – yazz.com Jun 08 '11 at 15:46
  • 1
    You need to put the appropriate code certificate in the Java keystore. See http://www.informit.com/articles/article.aspx?p=407886 for some things to point in the right direction. – Jeff Foster Jun 08 '11 at 15:49
  • @Jeff How about adding that as an answer? – ponzao Jun 08 '11 at 18:36

1 Answers1

1

Clojure, after all, is hosted on the Java platform. Hopefully, this question can set you on the right path.

Community
  • 1
  • 1
Julien Chastang
  • 17,592
  • 12
  • 63
  • 89