Programming

(쿨팁) git 에서 https repository 연결시 SSL 인증서 오류 해결 설정 방법 http.sslVerify false

IT오이시이 2025. 4. 28. 16:14
728x90

ㅁ 리눅스 개발자가 알아야 할 SSL 인증서 오류 해결 방법

  - git, curl, wget, pip, npm, dnf, yum , Pycharm etc.

 


 

git 에서 https repository 연결시 SSL 인증서 오류 해결 설정 방법 http.sslVerify false

 

유용한ㅣ팁 정리 git SSL 인증서 문제 해결

- git 에서 https repository 연결시 SSL 인증서 오류 해결법 http.sslVerify false

- GIT_SSL_NO_VERIFY 방법 :
     git config --global http.sslVerify false
    export GIT_SSL_NO_VERIFY=true

 
- #SSL인증서오류해결 #SSL인증서 #no-check-certificate #--insecure #SSLVerify=false #check-certificate #http.sslVerify

 

[ 파이썬 SSL인증서 오류 참고]
1. 파이썬 설치 오류 해결 pip SSLCertVerificationError
2. git  https repository 연결시 SSL 인증서 오류 해결
3. (Pycharm)  PIP 패키지 설치 SSL 인증서 오류 해결 

 

Git flask 다운로드 설치 오류해결

인증서오류 git 다운로드가 안되고 막힌경우 나오는 오류 메시지 입니다.
certificate problem: unable to get local issuer certificate


SSL 사용할수 없는 경우 git 다운로드 방법

https repository 연결시 ssl 검증 Off

 

방법 1. 환경 변수 설정을 이용한 방법


# 단일 명령어만 적용
env GIT_SSL_NO_VERIFY=true   git clone https://github.com/getrepo.git

또는

# 현재 셀 전체 세션에 적용
export GIT_SSL_NO_VERIFY=true
git clone https://github.com/getrepo.git

* 위의 환경 변수를 시스템 환경 변수로 설정하고 git 명령을 실행하는  경우입니다.

 

방법 2.  git 명령 옵션으로 추가 하는 방법

 

git config --global http.sslVerify false
* git 명령을 실행할때 추가 옵션으로 "http.sslVerify false" 를 추가 하는 방법입니다.

또는 vi ~/.gitconfig 로 다음 내용을 추가하는 방법도 가능하다.

# vi  ~/.gitconfig
[http]
        sslVerify = false

 


flask. 다운로드 와 테스트


https://github.com/pallets/flask

# clone the repository
$ export GIT_SSL_NO_VERIFY=true
$ git clone https://github.com/pallets/flask
$ cd flask

# checkout the correct version
$ git tag  # shows the tagged versions
$ git checkout latest-tag-found-above
$ cd examples/tutorial


Create a virtualenv and activate

$ python3 -m venv venv
$ . venv/bin/activate

# windows cmd
$ py -3 -m venv venv
$ venv\Scripts\activate.bat


install Flask

$ pip install -e .

 

$ flask --app flaskr init-db
$ flask --app flaskr --debug run

Open http://127.0.0.1:5000 in a browser.
Test
$ pip install '.[test]'
$ pytest

728x90
반응형