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

Re: Multiple GIT Accounts & HTTPS Client Certificates - Config

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Sep 13, 2018, 04:17 UTC
Message-ID
<20180913041708.GT432229@genre.crustytoothpaste.net>
In-Reply-To
<CAPO0KtU5YHtuTEzSAZ8sbtuUuZ_0EV4_LyQdWcDJgH6N05TN+g@mail.gmail.com>
On Tue, Sep 11, 2018 at 09:42:35AM +0200, Sergei Haller wrote:
Show 12 quoted lines
> PS: while I was trying to send the mail to this mailing list, there is
> some update from the stack overflow side:
> 
> * I am using sslBackend schannel
> * the private key of my client certificate can be provided by using
> the http.sslKey config option
> * the private key is on a smart card, so there is no way I can copy it
> over to a file and use the openssl backend (at least no way that I am
> aware of :)
> 
> so basically this pins down to the fact that schannel implementation
> is picking the wrong key.

Git doesn't provide an option to query a smartcard outside of what your typical TLS implementation provides by default. Not being a Windows user, I don't know if Schannel provides a way to automatically select the right private key based on which certificate is used, or if that's outside its capability.

> PS: the recent realization makes me believe this is a window specific
> problem. I think I have read somewhere
> about a separate windows mailing list (but not sure where I saw it)

If you're talking about Git for Windows, yes, this is probably better addressed as an issue there: https://github.com/git-for-windows/git.

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Sergei Haller
Message 5 of 5 in “Multiple GIT Accounts & HTTPS Client Certificates - Config”
  1. Sergei HallerSep 10, 2018
  2. Randall S. BeckerSep 10, 2018
  3. Sergei HallerSep 11, 2018
  4. Sergei HallerSep 11, 2018
  5. brian m. carlsonSep 13, 2018

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.