728x90
https로 git repository를 클론하면 https 오류가 발생하는 경우가 있습니다. 저같은 경우에는 gitlab에서 프로젝트를 생성하여 소스를 관리하는데, gitlab 서버에서 clone 시 종종 다음과 같은 https server certificate 오류가 발생합니다.
fatal: unable to access 'https://1.1.1.1/root/abc.git/': server certificate verification failed. CAfile: none CRLfile: none |
자가서명 SSL 인증서를 사용하는 경우 발생하는 오류로 git clone하는 클라이언트에서 verify를 무시하면 해결됩니다.
$ git config --global http.sslVerify false
위와 같이 git config를 설정해주고 git clone을 다시 하면 git repository를 받을 수 있습니다.
728x90
728x90
LIST
Comment