Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/blog.cloudwai.com/usr/plugins/AMP/Action.php on line 388
解决"ERROR: The certificate of `github.com’ is not trusted."问题

云外博客 | 步入云端探索未知奥秘

解决"ERROR: The certificate of `github.com’ is not trusted."问题

今天早上有在GITHUB下载一个脚本到VPS中的时候有出现"ERROR: The certificate of github.com’ is not trusted."的错误提示。应该意思是这个证书可能不被信任,反正就这个提示,正式存在的,我换了其他有HTTPS网址也无法WGET`下载,应该是这个问题。
解决办法:

--no-check-certificate

我们可以直接在wget后面加上脚本即可。

或者我们可以:

apt-get install ca-certificates -y #Debian/Ubuntu

yum install ca-certificates -y  #CentOS

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »

因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合AMP标准。