본문 바로가기
프로그래밍/Git

[Git] Clone SSL certificate problem 오류 해결가이드

by 서울에서 살아가기 2022. 7. 11.

git 프로젝트 생성 후 git clone을 위해 명령어를 입력하면 SSL certificate problem: unable to get local issuer certificate와 같은 오류가 발생합니다.

 

> git clone https://gitlab.git.com/repo/project.git
Cloning into 'project'...
fatal: unable to access 'https://gitlab.git.com/repo/project.git/'
: SSL certificate problem: unable to get local issuer certificate

 

SSL certificate problem 오류는 SSL 인증서(SSL Certificate)에 문제가 있을때 발생합니다.

 

 

오류 해결가이드 (SSL certificate problem)

방안1. SSL 인증 비활성화

전역 옵션을 사용하여 SSL 인증서(SSL Certificate) 유효성 검사를 수행하지 않도록 git에 SSL 인증 비활성화 명령어를 수행합니다.

> git config --global http.sslVerify false

 

 

다시 git clone 명령어를 수행해보면 정상적으로 내려받아집니다.

> git clone https://gitlab.git.com/repo/project.git
Cloning into 'project'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 18 (delta 4), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (18/18), 10.43 KiB | 381.00 KiB/s, done.
Resolving deltas: 100% (4/4), done.

 

 

방안2. Schannel 암호화 백엔드로 사용

아래 명령어를 사용하여 설정합니다.

> git config --global http.sslbackend schannel

 

 

 

<방안1 주의사항>

위와 같은 해결방법은 SSL 보안(SSL certificate)이 적용되지 않는 임시방편이므로 가능한 빨리 활성화 시키는것을 권장합니다.

> git config --global http.sslVerify true

 

 

반응형

댓글