"Curl: (60) SSL certificate problem: unable to get local issuer certificate"의 두 판 사이의 차이

(새 문서: ==개요== ;<nowiki>curl: (60) SSL certificate problem: unable to get local issuer certificate</nowiki> <source lang='console'> testuser1@localhost:~$ curl https://localhost:9200 cur...)
 
 
(사용자 2명의 중간 판 12개는 보이지 않습니다)
1번째 줄: 1번째 줄:
==개요==
==개요==
{{소문자}}
;<nowiki>curl: (60) SSL certificate problem: unable to get local issuer certificate</nowiki>
;<nowiki>curl: (60) SSL certificate problem: unable to get local issuer certificate</nowiki>


<source lang='console'>
==사례 1==
<syntaxhighlight lang='console'>
testuser1@localhost:~$ curl https://localhost:9200
testuser1@localhost:~$ curl https://localhost:9200
curl: (60) SSL certificate problem: unable to get local issuer certificate
curl: (60) SSL certificate problem: unable to get local issuer certificate
10번째 줄: 12번째 줄:
establish a secure connection to it. To learn more about this situation and
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
how to fix it, please visit the web page mentioned above.
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
testuser1@localhost:~$ curl -k https://localhost:9200
testuser1@localhost:~$ curl -k https://localhost:9200
Unauthorized
Unauthorized
</source>
</syntaxhighlight>
<syntaxhighlight lang='console'>
# git clone https://mygitserver/hello/world.git
Cloning into 'world'...
fatal: unable to access 'https://mygitserver/hello/world.git/': SSL certificate problem: unable to get local issuer certificate
</syntaxhighlight>
 
==사례 2==
<syntaxhighlight lang='console'>
$ curl https://135.79.246.80:2376/images/json
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.
</syntaxhighlight>
<syntaxhighlight lang='console'>
$ curl https://49.247.171.74:2376/images/json \
>  --cert ~/.docker/cert.pem \
>  --key ~/.docker/key.pem \
>  --cacert ~/.docker/ca.pem
[{"Containers":-1,"Created":1718914618,"Id":"sha256:a606584aa9aa875552092...
</syntaxhighlight>
 
==조치방법==
* [[데비안 CA 인증서 추가]]
* [[알파인 CA 인증서 추가]]
* [[우분투 CA 인증서 추가]]


==같이 보기==
==같이 보기==
* [[curl: (60) Peer's Certificate issuer is not recognized.]]
* [[curl: (60) SSL certificate problem: EE certificate key too weak]]
* [[curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to]]
* [[curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to]]


[[분류: curl]]
[[분류: curl]]

2024년 7월 13일 (토) 01:36 기준 최신판

1 개요[ | ]

curl: (60) SSL certificate problem: unable to get local issuer certificate

2 사례 1[ | ]

testuser1@localhost:~$ curl https://localhost:9200
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.
testuser1@localhost:~$ curl -k https://localhost:9200
Unauthorized
# git clone https://mygitserver/hello/world.git
Cloning into 'world'...
fatal: unable to access 'https://mygitserver/hello/world.git/': SSL certificate problem: unable to get local issuer certificate

3 사례 2[ | ]

$ curl https://135.79.246.80:2376/images/json 
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.
$ curl https://49.247.171.74:2376/images/json \
>   --cert ~/.docker/cert.pem \
>   --key ~/.docker/key.pem \
>   --cacert ~/.docker/ca.pem
[{"Containers":-1,"Created":1718914618,"Id":"sha256:a606584aa9aa875552092...

4 조치방법[ | ]

5 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}