[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=1set 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.
相關文章
相關標籤/搜索