1
使用TLS 1.2尝试连接到https服务器(https://3dsecure.kkb.kz)。使用TLS 1.2协议的clojure https连接
(defn- http-request-clojure [xml req-type]
(let [url-info (url-map req-type)
(prepare-response (.toString (:body (client/get
(str (:url url-info) "?"
(and (:name url-info)
(str (:name url-info) "="))
(URLEncoder/encode xml))
{:insecure? true
:socket-timeout 10000
:conn-timeout 10000}))))))
出现错误 “javax.net.ssl.SSLException:收到致命警报:PROTOCOL_VERSION”
的OpenSSL 1.0.1g,Java 7中
任何想法什么不顺心?
我已经通过设置自定义SSLConnectionSocketFactory成功地连接到java 7中的这个服务器与java的例子与Apache http lib(这是基地的clj-http)。但我无法找到在clj-http中如何做同样的事情。 – Amigo