Server Can';t使用wget验证url证书(没有根访问权限)

Server Can';t使用wget验证url证书(没有根访问权限),server,certificate,ssl-certificate,wget,Server,Certificate,Ssl Certificate,Wget,我在远程服务器上,我们没有sudo访问权限。我有一个脚本可以帮助从这个url下载数据:wget 代码: 但是我得到了一个错误: --2021-04-30 02:04:31-- http://wget/ Resolving wget (wget)... failed: Device or resource busy. wget: unable to resolve host address ‘wget’ --2021-04-30 02:04:31-- https://datashare.is.

我在远程服务器上,我们没有sudo访问权限。我有一个脚本可以帮助从这个url下载数据:wget

代码:

但是我得到了一个错误:

--2021-04-30 02:04:31--  http://wget/
Resolving wget (wget)... failed: Device or resource busy.
wget: unable to resolve host address ‘wget’
--2021-04-30 02:04:31--  https://datashare.is.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz
Resolving datashare.is.ed.ac.uk (datashare.is.ed.ac.uk)... 129.215.41.53
Connecting to datashare.is.ed.ac.uk (datashare.is.ed.ac.uk)|129.215.41.53|:443... connected.
HTTP request sent, awaiting response... 302 Found : Moved Temporarily
Location: https://datashare.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz [following]
--2021-04-30 02:04:32--  https://datashare.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz
Resolving datashare.ed.ac.uk (datashare.ed.ac.uk)... 192.41.117.26
Connecting to datashare.ed.ac.uk (datashare.ed.ac.uk)|192.41.117.26|:443... connected.
ERROR: cannot verify datashare.ed.ac.uk's certificate, issued by ‘CN=QuoVadis Europe EV SSL CA G1,O=QuoVadis Trustlink B.V.,C=NL’:
  Unable to locally verify the issuer's authority.
To connect to datashare.ed.ac.uk insecurely, use `--no-check-certificate'.
tar (child): CINIC-10.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'CINIC-10.tar.gz': No such file or directory
现在,我不是证书工作原理方面的专家,我阅读了另一篇stackoverflow文章来检查证书错误,并在这里查找名为
额外下载的内容:我不知道如何阅读此网站,但我没有看到任何错误


如何解决证书错误并运行shell脚本?

datashare.is.ed.ac.uk(至少对于您的URL)重定向到datashare.ed.ac.uk,正如错误消息所示,是后者发生了错误。显示“链问题不完整”和所需的“额外下载”。为您找到它,或者因为前一个站点提供了它,您可以在上面使用
openssl s_client-showcerts
。附:这不是一个真正的编程问题。@dave_thompson_085我不太了解证书是如何工作的,如果不是这样问的话,我深表歉意。但是,如果我可以问一下,如何使用
openssl s\u-clent-showcerts
。它会像
wget-P'data/cinic'wget一样吗https://datashare.is.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz openssl s_clent-showcerts
?@dave_thompson_085另一个问题:whatsmychaincert.com/?datashare.ed.ac.uk中的链接单击时显示要下载的文件。如何将其用作带有
wget
的url?
--2021-04-30 02:04:31--  http://wget/
Resolving wget (wget)... failed: Device or resource busy.
wget: unable to resolve host address ‘wget’
--2021-04-30 02:04:31--  https://datashare.is.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz
Resolving datashare.is.ed.ac.uk (datashare.is.ed.ac.uk)... 129.215.41.53
Connecting to datashare.is.ed.ac.uk (datashare.is.ed.ac.uk)|129.215.41.53|:443... connected.
HTTP request sent, awaiting response... 302 Found : Moved Temporarily
Location: https://datashare.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz [following]
--2021-04-30 02:04:32--  https://datashare.ed.ac.uk/bitstream/handle/10283/3192/CINIC-10.tar.gz
Resolving datashare.ed.ac.uk (datashare.ed.ac.uk)... 192.41.117.26
Connecting to datashare.ed.ac.uk (datashare.ed.ac.uk)|192.41.117.26|:443... connected.
ERROR: cannot verify datashare.ed.ac.uk's certificate, issued by ‘CN=QuoVadis Europe EV SSL CA G1,O=QuoVadis Trustlink B.V.,C=NL’:
  Unable to locally verify the issuer's authority.
To connect to datashare.ed.ac.uk insecurely, use `--no-check-certificate'.
tar (child): CINIC-10.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
rm: cannot remove 'CINIC-10.tar.gz': No such file or directory