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

Re: [PATCH] http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors

From
Jeff King <peff@peff.net>
Date
Sep 24, 2021, 21:24 UTC
Message-ID
<YU5CJC9XJvQITfr8@coredump.intra.peff.net>
In-Reply-To
<patch-1.1-6e65734cbce-20210924T100532Z-avarab@gmail.com>
On Fri, Sep 24, 2021 at 12:08:20PM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 6 quoted lines
> Change the error shown when a http.pinnedPubKey doesn't match to point
> the http.pinnedPubKey variable added in aeff8a61216 (http: implement
> public key pinning, 2016-02-15), e.g.:
> 
>     git -c http.pinnedPubKey=sha256/someNonMatchingKey ls-remote https://github.com/git/git.git
>     fatal: unable to access 'https://github.com/git/git.git/' with http.pinnedPubkey configuration: SSL: public key does not match pinned public key!

TBH, I think the message as-is is sufficiently descriptive. That said, it's not too much extra code to handle it specially, so I don't feel all that strongly.

Maybe people care more about the translation aspect, but it feels like that's the tip of the iceberg in terms of curl errors.

The patch itself looks correct to me.
-Peff
Previous: Ævar Arnfjörð BjarmasonNext: SZEDER Gábor
Message 2 of 7 in “http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors”
  1. http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errorsÆvar Arnfjörð Bjarmason, Sep 24, 2021
  2. Jeff KingSep 24, 2021
  3. SZEDER GáborOct 10, 2021
  4. Ævar Arnfjörð BjarmasonOct 11, 2021
  5. SZEDER GáborOct 11, 2021
  6. Ævar Arnfjörð BjarmasonOct 11, 2021
  7. Jeff KingOct 11, 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.