SSL certificate problem using git in AIX

杀马特。学长 韩版系。学妹 提交于 2020-05-05 21:38:33

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

  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>

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!