SSL certificate problem using git in AIX

After installed git in AIX, when run git clone found that SSL certificate problem: unable to get local issuer certificate
Solution as below collected from google

No ssl verify

  • export GIT_SSL_NO_VERIFY=true ( unset GIT_SSL_NO_VERIFY)
  • git config http.sslVerify false ( git config --unset http.sslVerify)
  • curl http://curl.haxx.se/ca/cacert.pem -o /var/ssl/cacert.pem (not work, but no /etc/ssl or /etc/openssl folder in AIX)

SSL verify

  • .git/config
    1
    2
    [http]
    sslCAInfo=/var/ssl/certs/cacert.pem
  • git config --system (or --global or --local) http.sslcainfo /var/ssl/certs/cacert.pem

http://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewallrhttp://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewall