
curl で次のエラーが発生します:
curl https://www.google.com -v
* About to connect() to www.google.com port 443 (#0)
* Trying 2607:f8b0:400e:c01::67...
* Failed to connect to 2607:f8b0:400e:c01::67: Network is unreachable
* Trying 74.125.28.103...
* Adding handle: conn: 0x4041f868e0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x4041f868e0) send_pipe: 1, recv_pipe: 0
* Connected to www.google.com (74.125.28.103) port 443 (#0)
* error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* Closing connection 0
ネットワークに到達できない場合は無視してください。ネットワークに到達できる場合でも、すべての https:// URL で発生します。
証明書は自動的に取得されるはずなので、手動でインストールしません... 何かアイデアはありますか?
答え1
修正。問題が何であったかはわかりませんが、証明書 (ca-certificates) パッケージに関連していました。
ca-certificates
を追加して実行することで修正されましたupdate-ca-certificates
私が使用していたディストリビューションは Alpine LInux なので、コマンドは次のようになります。
apk add ca-certificates
update-ca-certificates
Debian の場合も同様に次のようになります:
apt-get install ca-certificates
update-ca-certificates