Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Certificate error when downloading from github #4

Open
alexjj opened this issue Feb 5, 2013 · 5 comments
Open

Certificate error when downloading from github #4

alexjj opened this issue Feb 5, 2013 · 5 comments

Comments

@alexjj
Copy link

alexjj commented Feb 5, 2013

I had to use --no-check-certificate to run the script due to the error:

WARNING: certificate common name *.a.ssl.fastly.net' doesn't match requested host nameraw.github.com'.

@thegyppo
Copy link

thegyppo commented Feb 7, 2013

Hey Alex, we're aware of this issue. Happens with some hosts that can't validate the certificate for some reason.

It's highly likely we won't be building a fix into the script since we're technically bypassing the security option without prompting the user. Or we may have an option where the user can type Y to bypass or something like that.

@alexjj
Copy link
Author

alexjj commented Feb 7, 2013

The important thing is you know about it, so that's good.

On 7 February 2013 04:11, Stuart McKeown [email protected] wrote:

Hey Alex, we're aware of this issue. Happens with some hosts that can't
validate the certificate for some reason.

It's highly likely we won't be building a fix into the script since we're
technically bypassing the security option without prompting the user. Or we
may have an option where the user can type Y to bypass or something like
that.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-13220845.

Alex Johnstone

@ponny
Copy link
Contributor

ponny commented Feb 7, 2013

What distro are you using? Perhaps this is the issue: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=903756

If they don't get a fix in soon enough, I might have to switch the script url back to curl.

@alexjj
Copy link
Author

alexjj commented Feb 7, 2013

Ubuntu 11.10. I also used it on 12.04 and it was fine.

On 7 February 2013 13:08, John Sherwood [email protected] wrote:

What distro are you using? Perhaps this is the issue:
https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=903756

If they don't get a fix in soon enough, I might have to switch the script
url back to curl.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-13234985.

Alex Johnstone

@fny
Copy link

fny commented Feb 9, 2013

It's highly likely we won't be building a fix into the script since we're technically bypassing the security option without prompting the user. Or we may have an option where the user can type Y to bypass or something like that.

👍 to a yes option. The security concern seems moot given the current implementation of require_download:

...
wget --no-check-certificate -q --no-check-certificate -O - $3 | tar -xzf -
# Two --no-check-certificates?!
...

Possible Fixes for Wget Issues

  1. Make sure you have the root certificate authorities installed. Debian-based distros can use: sudo apt-get install ca-certificates. Note that the benchmark scripts dependencies requires the openssl package which in turn will install ca-certificates as a suggested package.
    Alternatively, the CURL guys also have a certificate bundle you can install that they've made from Mozilla:

    pushd /usr/ssl/certs
    curl http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}     {print > "cert" n ".pem"}'
    c_rehash
  2. If that doesn't work, it may be a bug in your distro's wget release. There are several bug reports related to the issue.
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409938
    https://bugzilla.redhat.com/show_bug.cgi?id=674186
    https://bugzilla.redhat.com/show_bug.cgi?id=736445
    https://bugzilla.redhat.com/show_bug.cgi?id=903756

    The bug originally showed up in wget v1.10.2 and should have been corrected in v1.13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants