0
0

はじめに

git clone 時に SSL 証明書エラーが出た。以下のようなエラー文出たときの対処方法です!

問題

実務にて、とある顧客環境の gitlab リポジトリをクローンしようとしたときに以下のようなエラーが出てしまいました。。

$ git clone https://git.xxx/yyy/zzz.git
Cloning into 'zzz'...
fatal: unable to access 'https://git.xxx/yyy/zzz.gt/': SSL certificate problem: unable to get local issuer certificate

解決方法

結果から言うと単純ですが、SSL 認証を false にすることで回避できます(当たり前)

具体的には、以下コマンド実行し、SSL 証明を off にします。

$ git config --global http.sslVerify false

確認

$ git config -l

余談

SSL 証明 off にしていいのかは少し疑問です、、
誰か知っている方、、

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0