[Tips] Resolve error: server certificate verification failed.

# sympton:

piaoger@piaoger-ubuntu:~/w/temp$ git clone https://mygit/solidmcp/solidmcp.git
Cloning into 'solidmcp'...
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://mygit/solidmcp/solidmcp.git/info/refs
fatal: HTTP request failed


# solution

export GIT_SSL_NO_VERIFY=1
set this environment variable before running git commmands.

It's temporary solution by turning off the verification. It would not be an good idea.This trick is just for urgently accessing in a certain situation and not recommending in general cases.

posted on 2013-12-20 15:37  飘行天下  阅读(540)  评论(0编辑  收藏  举报

导航