On Windows, how does one configure GIT to prompt or otherwise use a client HTTPS certificate when connecting to an HTTPS repository that requires HTTPS Client authentication?
Complications:
- SSL is blocked by firewalls, can't sidestep the problem.
- Private Key is locked onto smart card, cannot extract or replace.
CodePudding user response:
Solution:
git clone -c http.sslCert="CurentUser\MY\[thumbprint of cert]" [URL]
Or .gitconfig:
[http]
sslCert=CurrentUser\\MY\\[thumbprint of cert]
PS, for CURL, it is --cert or -K "CurrentUser\MY[thumbprint]"