Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: The certificate of `raw.githubusercontent.com' is not trusted

Tags:

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. 

Same goes for 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. 

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

like image 638
malat Avatar asked Nov 26 '14 08:11

malat


People also ask

How do I fix Certificate not trusted?

If the problem is that your CA is not trusted, then you may need to install at least one intermediate certificate on your web server. Intermediate certificates help browsers establish that the website's certificate was issued by a valid root certification authority.

How do I use Githubusercontent raw?

The raw.githubusercontent.com domain is used to serve unprocessed versions of files stored in GitHub repositories. If you browse to a file on GitHub and then click the Raw link, that's where you'll go. The URL in your question references the install file in the master branch of the Homebrew/install repository.


1 Answers

The solution was simple, from my debian system simply install:

$ sudo apt-get install ca-certificates 
like image 183
malat Avatar answered Sep 28 '22 23:09

malat