AdSense

網頁

2025/5/23

GitLab unable to access SSL certificate problem: self signed certificate

使用內部的GitLab時,可能因為HTTPS SSL憑證的問題而無法pull,快速的解決方式如下。


例如在輸入git pull時出現以下訊息。

$ git pull
fatal: unbable to access 'https://<domain>/<project>.git': SSL certificate problem: self signed certificate

此時可以輸入git config --global http.sslVerify false暫時把SSL檢驗關掉。

$ git config --global http.sslVerify false

執行後就可以正常pull了。

等到SSL憑證搞定後再改回true即可。


沒有留言:

AdSense