gpt4 book ai didi

ssl - curl:(60)SSL证书问题:自签名证书

转载 作者:行者123 更新时间:2023-12-04 22:37:19 24 4
gpt4 key购买 nike

我想在我的 Linux 计算机上安装 nvm。
(我的 Debian 版本是 10。)

我阅读了这份文件 https://github.com/nvm-sh/nvm#install--update-script
我输入了这个脚本。

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

这就是结果。
 % 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: self signed certificate in certificate chain
More details here: https://curl.haxx.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.

我阅读了这份文件 https://curl.haxx.se/docs/sslcerts.html但我不明白该怎么做。于是上网一搜,发现需要代理配置。
export http_proxy="http://webfilter.**********.com:8000/"
export https_proxy="http://webfilter.**********.com:8000/"

我在终端中输入了这些命令并再次尝试了这个脚本。
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

然后我得到相同的结果。
  % 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: self signed certificate in certificate chain
More details here: https://curl.haxx.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.

我该如何解决这个问题?

最佳答案

found that I need proxy configuration.



首先检查您在该调用之前是否确实需要任何代理。
For instance (没有导出代理):
curl -Is http://www.google.com | head -1 | grep 200; if [[ $? -eq 0 ]]; then; echo "Online"; else; echo "Offline"; fi

如果这有效,那么问题就不同了。
如果没有,请使用您的代理再试一次。

关于ssl - curl:(60)SSL证书问题:自签名证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62143570/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com