Servers misconfiguration causes clj-http to throw "SSLProtocolException - unrecognized_name" even with {:insecure true}
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.8k
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
clj-http v3.1.0 is facing this exception while clj-http v2.2.0 is not. Below is my code
(http/get "https://www.nationwidechildrens.org/Document/Get/82228" {:as :stream :insecure? true :throw-exceptions true })
Googling around, bring me to http://stackoverflow.com/questions/24720013/apache-http-client-ssl-certificate-error.
I belive it was implemented in the newest code of clj-http in https://github.com/dakrone/clj-http/blob/master/src/clj_http/conn_mgr.clj#L25
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/clj_http/conn_mgr.clj at the SSL-related code referenced in the issue, and compare the behavior between clj-http v2.2.0 and v3.1.0. Reproduce the provided request against the stated URL with :insecure? true; done means the request no longer throws SSLProtocolException - unrecognized_name under the affected configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100