Jakke
Jakke

Reputation: 327

Use a client certificate with git credential manager

We use a smart card at work for all authentication, including our git repos in TFS.

git-credential-manager-for-windows worked just fine with this using either SourceTree or the git command line directly on windows 7.

We've just upgraded to windows 10 and not the credential manager prompts me for a username/password, but no option for a certificate from my smart card, like I would expect.

I'm poring over the documentation, but can't find anything wrong. Anyone have any ideas?

Upvotes: 2

Views: 2231

Answers (1)

Jakke
Jakke

Reputation: 327

Turns out this was a user error (helped along by a slight change in interface).

When connecting to our TFS it does prompt for username/password, but gives no options to choose a certificate. Apparently if I just hit OK and try without entering anything, if uses the correct client cert.

I'm not sure exactly how this is working, but I suspect it's something in the Windows Credential Manger.

So my problem is solved, but if anyone has any insight on why or how it works, I'm all ears.

Upvotes: 1

Related Questions