'Windows GIT using HTTPS client auth from smartcard token
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.
Solution 1:[1]
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]"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | IMarvinTPA |