curl – 사설 인증서 접속하기

By | 2025년 1월 21일
Table of Contents

curl – 사설 인증서 접속하기

curl 을 이용해 사설인증서가 설치되어 있는 서버에 접속하게 되면 아래와 같은 오류가 발생한다.

curl https://서버아이피/
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 or --insecure 옵션을 이용해 서버에 접근이 가능하다.

curl -k https://서버아이피/

그리고 서버에서 반환된 response 를 확인하려면 아래와 같이 명령을 입력한다.

curl -k -o - -I https://서버아이피/
HTTP/2 404
date: Mon, 20 Jan 2025 10:19:04 GMT
server: Kestrel

답글 남기기