завихрение: (60) проблема сертификата SSL: не мог получить локальный сертификат выпускающего

Править: Я обновил свои корневые сертификаты CA от curl.haxx.se.


Когда я пробую curl -Iv https://yahoo.com Я получаю ошибку как unable to get local issuer certificate в результате. Однако, если я пробую curl -Iv --cacert /etc/ssl/certs/ca-certificates.crt https://yahoo.com Я получаю результат без любой ошибки.

Странно curl -Iv https://google.com работы правильно. Но curl -Iv https://deb.nodesource.com не делает.

Там шанс состоит в том, чтобы преодолеть эту проблему? (путем изменения вихревой конфигурации и т.д.)

root@ip-172-31-40-176:/var# curl -Iv https://yahoo.com
* Rebuilt URL to: https://yahoo.com/
* Hostname was NOT found in DNS cache
*   Trying 206.190.36.45...
* Connected to yahoo.com (206.190.36.45) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS alert, Server hello (2):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection 0
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.
2
задан 11 January 2016 в 10:03

2 ответа

Завихрение Becase не может проверить сертификат, предоставленный сервером.

существует два способа обойти:

1.add -k опция, которая позволяет завихрению устанавливать небезопасные связи, который не проверяет сертификат.

2.add базируются завихрение приблизительно ( загрузка здесь ) к /etc/ssl/certs/nodesource-ca.crt

4
ответ дан 2 December 2019 в 02:20

Или, для меня, работал просто это:

sudo apt-get install ca-certificates
0
ответ дан 2 December 2019 в 02:20

Другие вопросы по тегам:

Похожие вопросы: