본문 바로가기
개발/IT 기타

curl - SSL certificate problem: unable to get local issuer certificate

by 얼굴값하는사람 2024. 2. 21.
반응형

 

 

SSL certificate problem: unable to get local issuer certificate 발생 원인

 

오류는  SSL/TLS 연결을 시도할 때 발생하는 문제입니다. 이 문제는 보통 서버 또는 클라이언트 측에서 SSL 인증서를 올바르게 인식하지 못할 때 발생합니다. 문제를 해결하기 위해 몇 가지 방법을 시도할 수 있습니다

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

 

로컬 테스트시 발생했다면..

검증을 하지 않는 옵션인 -k(--insecure) 을 추가해서 curl 을 실행합니다. 

curl -k -L google.com
curl --insecure -L google.com

참고 : -l(--location) 옵션은 리다이렉트 되더라도 curl 을 실행하는 옵션

 

이외에도 인증기관 목록 추가하기, CA 인증서 파일 갱신을 시도해 볼 수 있습니다. 아래 문서를 참고하여 주세요.

https://www.lesstif.com/gitbook/curl-ca-cert-15892500.html#curl%EC%97%90%EC%8B%A0%EB%A2%B0%ED%95%98%EB%8A%94%EC%9D%B8%EC%A6%9D%EA%B8%B0%EA%B4%80%EC%9D%B8%EC%A6%9D%EC%84%9C(CACert)%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0-2.%EC%9D%B8%EC%A6%9D%EA%B8%B0%EA%B4%80%EB%AA%A9%EB%A1%9D%EC%B6%94%EA%B0%80%ED%95%98%EA%B8%B0

 

감사합니다!

반응형