我正在通过https使用远程git存储库,它具有自签名证书。为了让git知道自签名证书,我在.gitconfig中有以下内容:
[http]
sslCAInfo = /home/user/myselfsigned.cert
这工作正常,但是当我添加另一个带CA签名证书的远程时,git(或curl?)错误地尝试使用该远程的cert文件。将证书应用于特定远程的正确语法是什么?
我正在通过https使用远程git存储库,它具有自签名证书。为了让git知道自签名证书,我在.gitconfig中有以下内容:
[http]
sslCAInfo = /home/user/myselfsigned.cert
这工作正常,但是当我添加另一个带CA签名证书的远程时,git(或curl?)错误地尝试使用该远程的cert文件。将证书应用于特定远程的正确语法是什么?
我认为 那个问题 也回答了你的问题:
git config http."https://code.example.com/".sslCAInfo <downloaded certificate>.pem
和gitconfig文件一样会像:
[http "https://code.example.com/"]
sslCAinfo = /path/to/<downloaded certificate>
虽然它对我不起作用......
我认为 那个问题 也回答了你的问题:
git config http."https://code.example.com/".sslCAInfo <downloaded certificate>.pem
和gitconfig文件一样会像:
[http "https://code.example.com/"]
sslCAinfo = /path/to/<downloaded certificate>
虽然它对我不起作用......