When adding a custom CA ceritficate via git config --global http.sslCAInfo /tmp/git.pem, corresponding SSL certificates are still not accepted. It seems git relies completely on curl for that and is not respecting this setting.
With the system git (v2.43.0; Ubuntu 24.04) it works as expected.
Maybe related to #1219?