git clone出现SSL错误

在服务器上执行go get github.com/bitly/go-simplejson的时候git clone 出现SSL错误

# cd .; git clone https://github.com/bitly/go-simplejson /opt/go/src/pkg/github.com/bitly/go-simplejson

Cloning into /opt/go/src/pkg/github.com/bitly/go-simplejson...

error: SSL certificate problem, verify that the CA cert is OK. Details:

error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/bitly/go-simplejson/info/refs


fatal: HTTP request failed

package github.com/bitly/go-simplejson: exit status 128


然后在网上查了下解决办法

执行git config --global http.sslVerify false

你可能感兴趣的:(git,ssl,golang)