如何解决当我使用 -k/--insecure 时,是什么导致 Hyperledger Fabric 出现 ssl 合法性错误?
我正在尝试为 Hyperledger Fabric 安装二进制文件,但遇到错误。
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 语句中添加 -k 或 --insecure 。但是我这样做并不起作用。
curl --insecure -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 2.3.0 1.4.9
当我运行它时,前半部分很好,hyperledger/fabric-samples repo 克隆会成功。
这里是完整的输出
\Clone hyperledger/fabric-samples repo
===> Cloning hyperledger/fabric-samples repo
Cloning into 'fabric-samples'...
remote: Enumerating objects: 20,done.
remote: Counting objects: 100% (20/20),done.
remote: Compressing objects: 100% (18/18),done.
remote: Total 7386 (delta 2),reused 8 (delta 0),pack-reused 7366
Receiving objects: 100% (7386/7386),4.26 MiB | 905.00 KiB/s,done.
Resolving deltas: 100% (3823/3823),done.
===> Checking out v2.3.0 of hyperledger/fabric-samples
Pull Hyperledger Fabric binaries
===> Downloading version 2.3.0 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.3.0/hyperledger-fabric-windows-amd64-2.3.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
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.
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
==> There was an error downloading the binary file.
------> 2.3.0 platform specific fabric binary is not available to download <----
我还是个学生,所以这很容易成为一个愚蠢的问题,但我真的被困住了。所以有人可以帮我吗?
解决方法
所以,问题是 -k/--insecure 不够好,我不得不为所有连接更改它:
echo insecure >> ~/.curlrc
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。