Mac OS X El Capitan, MacPorts, it goes well for so long. And one day, git complains:
curl: (77) error setting certificate verify locations: CAfile: /opt/local/share/curl/curl-ca-bundle.crt CApath: none
Easy, update git config system to use ca-bundle.crt found by searching.
[http] sslcainfo = /opt/local/share/apps/kssl/ca-bundle.crt
But, curl itself still complains:
curl --cacert /opt/local/share/apps/kssl/ca-bundle.crt ...
Problem solved again.
But, it is hard to bear the burden of adding such a long argument!
Why did curl ask for the damn file not existed?
curl-config --ca /opt/local/share/curl/curl-ca-bundle.crt
OK, it seems that’s the value coded in the source. Fortunately, the command will check CURL_CA_BUNDLE environment variable.
Patch the ~/.profile (or .bashrc for bash, .zshrc for zsh…)
The problem is really resolved.