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

Re: [PATCH v2 0/2] http: store credential when PKI auth is used

From
John Szakmeister <john@szakmeister.net>
Date
Mar 12, 2021, 02:37 UTC
Message-ID
<CAEBDL5VynABbrOTupEjx_mT9f8zgWaqmHQOFR-5CFYpe9xsk=Q@mail.gmail.com>
In-Reply-To
<YErEaJ25gY8dzErv@coredump.intra.peff.net>

On Thu, Mar 11, 2021 at 8:31 PM Jeff King <peff@peff.net> wrote: [snip]

Show 10 quoted lines
> Thanks. Both patches look good to me. I wondered briefly if we needed to
> worry about old versions of curl missing CURLE_SSL_CERTPROBLEM. But it
> seems to have shown up in ~2002, so I think we are fine to assume it's
> there.
>
> It would be nice if we had some tests here, but we currently do not
> cover any of the ssl-cert stuff in the test suite. I suspect adding them
> would be a big pain to configure and maintain, so I'm OK to leave it off
> for now. Hopefully you gave it some basic manual testing with your
> working setup (good password is stored, bad password is rejected).

I did do some manual testing in an environment at work where they have this set up. Unfortunately, the way I went about this was not optimal. I'll work the issue differently in the future, so I don't have that kind of translation issue again.

Show 5 quoted lines
> Looking at how we generate the server-side cert for our http tests, we
> could _probably_ do something similar for a client-side cert, and just
> configure the server to accept a self-signed certificate. But like I
> said, I'm OK to leave that for another series (though of course if you
> want to work on it, that would be very much appreciated).

I looked at things a little bit, but it was too much to take on right now. I could probably get something together to help make it happen. I've been down that road before, so I know it can be involved, but it would be nice to have tests. I'm not signing up just yet for that, but when a rainy weekend hits, I'll see about taking a stab at it.

-John
Previous: Jeff King
Message 9 of 9 in “http: store credential when PKI auth is used”
  1. 0/2 http: store credential when PKI auth is usedJohn Szakmeister, Mar 12, 2021
  2. 1/2 http: store credential when PKI auth is usedJohn Szakmeister, Mar 12, 2021
  3. Junio C HamanoMar 12, 2021
  4. brian m. carlsonMar 12, 2021
  5. Jeff KingMar 12, 2021
  6. John SzakmeisterMar 12, 2021
  7. 2/2 http: drop the check for an empty proxy password before approvingJohn Szakmeister, Mar 12, 2021
  8. Jeff KingMar 12, 2021
  9. John SzakmeisterMar 12, 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.