Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 채보
- 컨테이너
- windows forms
- paramiko
- Selenium
- 핑거스타일
- label
- VS Code
- OpenCV
- 프로그래머스
- Visual Studio
- 오류
- error
- pip
- YOLO
- mysql
- SSH
- pytorch
- Python
- LIST
- pandas
- Linux
- Numpy
- C++
- ubuntu
- JSON
- C
- C#
- 기타 연주
- Docker
Archives
- Today
- Total
기계는 거짓말하지 않는다
libcurl curl_easy_perform() failed: SSL peer certificate or SSH remote key was not OK 오류 본문
C
libcurl curl_easy_perform() failed: SSL peer certificate or SSH remote key was not OK 오류
KillinTime 2023. 5. 27. 22:51curl 라이브러리를 이용할 때 볼 수 있는 SSL 인증 관련 오류이다.
아래는 해결 방법들이다.
SSL Disable
Docs: CURLOPT_SSL_VERIFYPEER
아래와 같이 SSL 인증을 disable 할 수 있다.
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
CA 인증서 추가
Docs: CURLOPT_CAINFO
# 다운로드
wget https://curl.haxx.se/ca/cacert.pem
// 코드 추가
curl_easy_setopt(curl, CURLOPT_CAINFO,"cacert.pem");
'C' 카테고리의 다른 글
C 디렉터리 소유권 변경, chown 함수 (0) | 2024.07.18 |
---|---|
배열 최댓값, 최솟값 찾기 (분할 정복, Divide and Conquer) (0) | 2023.04.21 |
C 파일 존재 여부, File Exist Check (0) | 2022.05.13 |
병합 정렬(Merge Sort) (0) | 2021.10.20 |
이진 검색 트리(Binary Search Tree) (0) | 2021.10.06 |
Comments