【发布时间】:2021-12-20 15:59:03
【问题描述】:
我有一个网站。
我试图让人们将他们网站上的文件下载到他们自己的机器上。
为了做到这一点,他们会做 curl 或 wget。
它以前总是可以工作,但现在突然运行它们是这样的:
wget https://somedomain/somefile.sh;
--2021-11-07 17:26:05-- https://somedomain/somefile.sh
Resolving some_domain (some_domain)... some_ip_address
Connecting to some_domain (some_domain)|ip_address|:443... connected.
ERROR: The certificate of ‘some_domain’ is not trusted.
ERROR: The certificate of ‘some_domain’ doesn't have a known issuer.
The certificate's owner does not match hostname ‘some_domain’
还有卷曲:
curl https://somedomain/somefile.sh 1>文件;
curl: (60) SSL certificate problem: unable to get local issuer certificate
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.
我在自己的机器上可以下载,但在其他机器上却不能。似乎它适用于某些机器而不适用于其他机器。
我尝试在服务器上执行 sudo apt-get update 和 upgrade,然后执行 sudo service nginx restart,然后重新启动。 没有改变任何东西。
我也更新了证书,尽管它声称这是不必要的。没有改变这个。
我也尝试过用谷歌搜索它,但我没有找到答案,我真的不明白我应该怎么做才能让它发挥作用。
我不知道如何解决这个问题。
我该如何解决这个问题?
任何提示将不胜感激。 即使只是朝着正确的方向推进。
【问题讨论】:
-
你在使用 LetsEncrypt 吗?
-
是的。____________
-
那你可能是LetsEncrypt RootCA expiry的受害者。
-
我读到了,但我仍然不知道该怎么做。底线,“必须信任 ISRG Root X1”。但我不知道该怎么做。
-
我已经尝试用谷歌搜索,但无济于事。