以下の内容はhttps://blog.suganoo.net/entry/2018/12/25/155209より取得しました。


【Git】fatal: unable to access SSL connect error

git clone しようとしたらタイトルのようなエラーが出ました。

詳しく言うと、go get でgitのソースコードを落としてこようとしたら、なぜかSSL connect error が出ました。
その解消法です。

やったこと

go get やったところこんなエラーが出ました。

go get github.com/vladimirvivien/gowfs

# cd .; git clone https://github.com/vladimirvivien/gowfs /home/apdev/go/src/github.com/vladimirvivien/gowfs
Cloning into '/xxxxxxx/go/src/github.com/vladimirvivien/gowfs'...
fatal: unable to access 'https://github.com/vladimirvivien/gowfs/': SSL connect error
package github.com/vladimirvivien/gowfs: exit status 128

はて、SSL connect error とは.....。

じゃあsrc 配下のところで、git clone もしてみました。

git clone https://github.com/vladimirvivien/gowfs.git

Cloning into 'gowfs'...
fatal: unable to access 'https://github.com/vladimirvivien/gowfs.git/': SSL connect error

同じようなエラー。。。

ログを出す

export GIT_CURL_VERBOSE=1

を設定しておくと、git で操作するときに詳細なログがでてきます。

もう一回 git cloneしてみる。

git clone https://github.com/vladimirvivien/gowfs.git

.......
* Connected to xxx.xxxx.xxxx (11.22.33.44) port 8080 (#1)
* NSS error -12190
* Expire cleared
* Closing connection #1
fatal: unable to access 'https://github.com/vladimirvivien/gowfs.git/': SSL connect error

NSS error -12190 .... !?

解決方法

ググってみると、nss というものが古いのかもとかでてきます。
yum update したほうがいいそうです。

sudo yum update -y nss

そんでgit clone してみるとうまくいきました!
ついでにファイル消してgo get もやってみるとうまくいった!!

git clone https://github.com/vladimirvivien/gowfs.git

go get github.com/vladimirvivien/gowfs

GIT_CURL_VERBOSE これは使えるなあ。




以上の内容はhttps://blog.suganoo.net/entry/2018/12/25/155209より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14