Edited at

go get しようとしたら SSL protocol error エラーが出るとき

More than 1 year has passed since last update.


問題

go get できない…

$ go get github.com/revel/revel

# cd .; git clone https://gopkg.in/fsnotify.v1 /Users/xxxxxxx/go/src/gopkg.in/fsnotify.v1
Cloning into '/Users/xxxxxxx/go/src/gopkg.in/fsnotify.v1'...
fatal: unable to access 'https://gopkg.in/fsnotify.v1/': Unknown SSL protocol error in connection to gopkg.in:-9838
package gopkg.in/fsnotify.v1: exit status 128


解決策

$ git config --global http.sslVerify true


参考

https://github.com/niemeyer/gopkg/issues/47