git clone过程中SSL certificate problem: self signed certificate

在我的vps上使用git出现:
git Problem with the SSL CA cert (path? access rights?)

网上大概有三种解决方案,我用了下面这种,因为我可以用ssh链接但https链接却一直鉴权失败
git config --global url."git@github.com:".insteadOf "https://github.com/" cat ~/.gitconfig [url "git@github.com:"] insteadOf = https://github.com/

其他
两种的链接:http://derekmolloy.ie/fixing-git-and-curl-certificates-problem-on-beaglebone-blac/
原文地址:https://www.cnblogs.com/meowyeon/p/8657190.html