風舞/木shiyo
73 字
1 分钟
- 次阅读
- 人阅读
Git配置证书
简单记录Git配置SSL证书。
前提
已有完整的证书链(至少有2个证书,服务器证书+中间证书)的证书文件crt或者pem等。
配置
# Windowsgit 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
分享这篇文章
Git配置证书