dakrone / dakrone/clj-http

Servers misconfiguration causes clj-http to throw "SSLProtocolException - unrecognized_name" even with {:insecure true}

Open
#324 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

adopt me
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.