Miscellaneous

curl: (60) SSL certificate problem: self signed certificate

1103동103호·2019년 4월 25일·조회 13,825

1. 개요

curl로 셀프 인증서 사용하는 사이트 접속 불가

2. 현상

# curl https://www.abc.com
curl: (60) SSL certificate problem: self signed 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.

3. 해결

3-1. -k 옵션

# curl https://www.abc.com -k
Test Page

3-2. --insecure 옵션

# curl https://www.abc.com --insecure
Test Page

 

댓글 0

로그인 후 댓글을 남길 수 있습니다.

아직 댓글이 없습니다.