develog

[bash] curl ssl 인증서 오류 무시하기 본문

카테고리 없음

[bash] curl ssl 인증서 오류 무시하기

냐옴 2025. 2. 21. 10:33

 

일반 사용시 ssl 인증서를 확인한다

$ curl https://www.mysite.com/
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.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 옵션은 ssl 인증서 확인을 무시한다

-k : This option makes curl skip the verification step and proceed without checking.

$ curl -k https://www.mysite.com/
mysite

 

Comments