GNU/Linux >> Linux の 問題 >  >> Ubuntu

カール:(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 しません。

この問題を克服するチャンスはありますか? (カール構成の変更などによる)

[email protected]:/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つあります:

1. -kを追加します curlが安全でない接続を確立できるようにするオプションで、証明書を検証しません。

2.ルートカールca(ここからダウンロード)を/etc/ssl/certs/nodesource-ca.crtに追加します


Ubuntu
  1. SSL証明書とは何ですか?

  2. SSL証明書をインストールする

  3. Plesk:SSLインストール

  1. SSL証明書を購入または更新する

  2. SSL It! で無料の SSL 証明書を取得する方法Plesk で暗号化しましょう

  3. Curl:証明書の検証を無効にする

  1. Let's Encrypt:Certbotを使用して無料のSSL証明書を取得する

  2. ホットスタービデオの再生に問題がありますか?

  3. パッケージの特定のバージョンを取得する適切な方法は?