I'm using a remote git repository via https, which has a self-signed certificate. To make git aware of the self-signed certificates, I have the following in my .gitconfig:
[http]
sslCAInfo = /home/user/myselfsigned.cert
This works fine, but when I add another remote with a CA signed certificate, git (or curl?) wrongly tries to use the cert file for this remote, too. What is the correct syntax to apply the certificate to a specific remote?