在Windows机器上安装Git期间,我为HTTPS传输后端选择了“使用OpenSSL库”。从Windows Git上的“OpenSSL库”切换到“本地Windows安全通道库”,无需重新安装?
我想切换到“本地Windows安全通道库”进行HTTPS传输。
这可能没有在Windows上重新安装git?
在Windows机器上安装Git期间,我为HTTPS传输后端选择了“使用OpenSSL库”。从Windows Git上的“OpenSSL库”切换到“本地Windows安全通道库”,无需重新安装?
我想切换到“本地Windows安全通道库”进行HTTPS传输。
这可能没有在Windows上重新安装git?
问题出在由Git for Windows开发人员解决: https://github.com/git-for-windows/git/issues/1274
您可以从Git的检查this thread为Windows维护者:
是的,这是可能的,你可以找出究竟它是由 做检查的源代码的安装程序,这是 https://github.com/git-for-windows/build-extra在 安装程序/ install.iss文件中(该文件也很容易通过
git grep "Secure Channel"
找到)。相关的部分是,当为GC_WinSSL选项 安装测试做更多有趣的东西,除了记录用户的选择:
if RdbCurlVariant[GC_WinSSL].Checked and (not
ReplaceFile(BinDir+'curl-winssl\curl.exe',BinDir+'curl.exe') or not
ReplaceFile(BinDir+'curl-winssl\libcurl-4.dll',BinDir+'libcurl-4.dll'))
then begin
Log('Line {#__LINE__}: Replacing curl-openssl with curl-winssl failed.');
end;
在其他字,安装程序将简单地尝试用\替换\ mingw64 \ bin(或32位等价物)中的curl.exe和 libcurl-4.dll文件\ mingw64 \ curl-winssl中的文件。
我发现 “SCHANNEL” 或 “OpenSSL的” 在GIT中的设置用于Windows 2.14.2中,64位中的文件:
C:\Program Files\Git\mingw64\ect\gitconfig
实施例配置加入OpenSSL:
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
sslBackend = openssl
Windows原生配置示例:
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
sslBackend = schannel