错误:“raw.githubusercontent.com”的证书不受信任 [英] ERROR: The certificate of `raw.githubusercontent.com' is not trusted

查看:14746
本文介绍了错误:“raw.githubusercontent.com”的证书不受信任的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用wget通过远程服务器(ssh)从github检索一些文件,这里是我得到:

I am trying to use wget to retrieve some file from github over a remote server (ssh), here is what I get:

$ wget  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
--2014-11-26 09:30:14--  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.31.19.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.19.133|:443... connected.
ERROR: The certificate of `raw.githubusercontent.com' is not trusted.
ERROR: The certificate of `raw.githubusercontent.com' hasn't got a known issuer.

同样适用于curl:

$ curl -o bla  https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

使用wget选项: - no-check-certificate 看起来像一个黑客,我可以失踪什么?

Using wget option: --no-check-certificate seems like a hack, what could I be missing ?

推荐答案

解决方案很简单, :

$ sudo apt-get install ca-certificates

这篇关于错误:“raw.githubusercontent.com”的证书不受信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆