개발/IT 기타
curl - SSL certificate problem: unable to get local issuer certificate
얼굴값하는사람
2024. 2. 21. 18:58
반응형
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 인증서 파일 갱신을 시도해 볼 수 있습니다. 아래 문서를 참고하여 주세요.
감사합니다!
반응형