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 certificategit

Solution as below collected from google No ssl verify

  1. export GIT_SSL_NO_VERIFY=true ( unset GIT_SSL_NO_VERIFY)
  2. git config http.sslVerify false ( git config --unset http.sslVerify)
  3. 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

<pre> [http] sslCAInfo=/var/ssl/certs/cacert.pem </pre>github

  • 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-firewallcurl

相關文章
相關標籤/搜索