SSL 인증서 : 로컬 발급자 인증서를 가져올 수 없음

데비안 (레니)을 사용하고 있습니다.

내가 이것을 실행할 때 :

curl --ssl https://www.google.com

이 오류가 발생합니다.

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.



답변

curl이 유효한 CA 인증서 번들에 액세스 할 수 없기 때문에 발생할 수 있습니다. 어쩌면 당신은 그것들을 설치하지 않았으므로 이것을 시도하십시오 :

apt-get install ca-certificates

도움이되지 않으면 CURL_CA_BUNDLEcurl이 잘못된 위치에서 번들을 찾지 않도록하십시오.


답변