Solution:
Root Cause: Windows Certificate Store Missing Corporate Root CA (SEC_E_UNTRUSTED_ROOT)
When Git is configured with
http.sslBackend = schannel, it delegates certificate validation to
schannel.dll. If the client machine is off-domain, connected over a non-managed VPN, or missed a Group Policy update, the corporate proxy's Root CA certificate will be missing from the
Trusted Root Certification Authorities store in Windows. Schannel rejects the handshake with API error
SEC_E_UNTRUSTED_ROOT (0x80090325).
Diagnostic Verification:
Run git clone with Schannel and curl debugging: GIT_CURL_VERBOSE=1 git clone https://github.com/org/repo.git
Output shows: * schannel: SEC_E_UNTRUSTED_ROOT (0x80090325) - The certificate chain was issued by an authority that is not trusted.
Step-by-Step Fix:
1Download/Obtain Corporate Root CA Certificate (.CER or .CRT file).
2Import Certificate into Computer Account Store via PowerShell:
Open PowerShell as Administrator and execute: Import-Certificate -FilePath "C:\Users\Public\corporate-root.crt" -CertStoreLocation Cert:\LocalMachine\Root
3Import into User Account Store (Alternative/Non-Admin Fix):
Import-Certificate -FilePath "C:\Users\Public\corporate-root.crt" -CertStoreLocation Cert:\CurrentUser\Root4Verify Certificate Installation:
Open certmgr.msc > expand Trusted Root Certification Authorities > Certificates > confirm corporate Root CA is present.5Test git clone command.
Prevention & Long-Term Monitoring:
Ensure off-domain or BYOD developer devices register with MDM solutions (e.g., Microsoft Intune) to pull required root certificates automatically.