git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to disable git verification of ssl proxy?

From
Jeff King <peff@peff.net>
Date
Mar 26, 2021, 08:43 UTC
Message-ID
<YF2eu7Q8LXUnRCGY@coredump.intra.peff.net>
In-Reply-To
<CAKrd5586jDVOSF-aYqqtA=Dt-Qn=zC89MHXkpS=7hNHP779stg@mail.gmail.com>
On Mon, Mar 22, 2021 at 11:06:31AM +0800, shadewither wrote:
Show 5 quoted lines
> git version 2.25.1 / Ubuntu 20.04
> http.sslverify=false does not work. git insists on verifying ssl proxy
> and complains.
> curl has an option of --proxy-insecure to disable proxy verification,
> what is the equivalent for git?

I don't think there is one. Peeking at the curl source code, --proxy-insecure is setting CURLOPT_PROXY_SSL_VERIFYPEER and CURLOPT_PROXY_SSL_VERIFYHOST both to 0.

So I think we'd need to plumb through an http.proxysslverify option that is equivalent to http.sslverify, but using the PROXY variants with curl_easy_setopt().

-Peff
Previous: shadewither
Message 2 of 2 in “How to disable git verification of ssl proxy?”
  1. shadewitherMar 22, 2021
  2. Jeff KingMar 26, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.