简单记录Git配置SSL证书。

前提

已有完整的证书链(至少有2个证书,服务器证书+中间证书)的证书文件crt或者pem等。

配置

bash
12345678
# Windows
git config --global http.https://xxx.your.domain.sslCAInfo "C:/xxx/xxx.pem"

# Linux,注意权限
git config --global http.https://xxx.your.domain.sslCAInfo "/xxx/xxx.pem"

# 验证
git config --global --get http.https://xxx.your.domain.sslCAInfo