-
Notifications
You must be signed in to change notification settings - Fork 7.3k
v0.12.6: WGET does not trust certificate when doing download #25629
Comments
I just tried, it works fine. Why don't you try again now? |
Thanks for responding to this. wget-ing the node sources under the latest Mac OS Yosemite update (to 10.10.4) does not work, exactly described above. I just retried it. I had compiled wget as a standard user on the Mac, since wget is not provided in Mac OS by default. I think curl is but not wget. Perhaps if I recompile and reinstall wget, it will work. wget-ing the node sources on one of my other boxes which runs CentOS Linux 6.5 works just fine. Completely as expected. I will try recompiling and reinstalling wget on OS X to see what happens. Perhaps there have been significant changes to openssl that affect wget, and my version needs to be updated and reinstalled. |
@BobCochran Looks like you may have to update your CA certificates, to get |
I recompiled gnutls and wget to the latest versions, and added the nodejs.org certificate to my OS X login keychain. Still no luck. Firefox will download node-v0.12.6.tar.gz without complaint. Evidently I need to do better research here. Thank you for your help with this. I will update this ticket as I research more, but since I can download via Firefox and I can successfully download with wget on a popular Linux distro, I don't need to waste your time on this. |
@BobCochran If you install wget via brew, it works fine on OS/X. I just tried on Yosemite via wget, and it's working fine. |
@karthik-rangarajan Thank you for your help. Everything with my standard user install of wget worked fine, until just recently. The thing that changed is that I installed OS X 10.10.4, Xcode, and XCode Command Line Tools (all as updates, of course) in one swoop last week. So I think something in those updates is affecting wget. There could be some change to openssl made by Apple. However your comment could be an important clue for me -- I will check to see what "./configure" options brew uses for wget, and try to recompile using those. I only compiled with the |
@BobCochran Were you using HTTP instead of HTTPS before to download Node.js with wget? |
I always right click on the download URL seen on the Nodejs download page, then "copy link location" to the clipboard, then paste that into the wget command on the terminal. So I'm using whichever protocol the Node website itself specifies for downloads. Bob
|
@BobCochran Thank you for the clarification 👍 The default protocol for downloads on nodejs.org was changed recently from HTTP to HTTPS. The certificates are signed with a certificate authority that should be trusted by most browsers and SSL/TLS clients. On my OSX setup,
whereas On my OSX machine, the root certificate authority's certificate is both in my keychain and in Would you mind running the following command:
to see where
What is the OpenSSL version currently installed on your system? If you can't find a version of OpenSSL or GnuTLS that comes with the root certificate used to sign nodejs.org's certificate, you can download it from Thawte's website. Obviously, that's not a great user experience and I would expect other users to run into this problem. We might need to make some changes to the download process in the future if that's too cumbersome for a significant number of users. |
Julien, thank you very much for helping me with this, it is much It looks like back in January, I compiled a version of openssl without
That OpenSSL lives in ~/local/bin. ...so when I run
I can see that on my system, /etc/ssl and /etc/ssl/certs does not exist. So Thanks Bob On Mon, Jul 6, 2015 at 3:06 PM, Julien Gilli notifications@github.com
|
Thank you @BobCochran for the info 👍 I would suggest to install either GnuTLS or OpenSSL from brew. Software distribution systems (such as Linux distributions or brew) usually take care of providing a reasonable initial trusted certificates store. In the case of brew, It generates a trusted certificates store from the system's keychain when installing OpenSSL. It does the same when installing GnuTLS. Please let us know if that helps :) |
Closing this as it does not appear to be an issue with node. |
When attempting to download file node-v0.12.6.tar.gz using wget as a standard user on Mac OS X 10.10.4 I get this error:
Downloads gbwk$ wget https://nodejs.org/dist/v0.12.6/node-v0.12.6.tar.gz
--2015-07-04 10:03:50-- https://nodejs.org/dist/v0.12.6/node-v0.12.6.tar.gz
Resolving nodejs.org... 165.225.133.150
Connecting to nodejs.org|165.225.133.150|:443... connected.
ERROR: The certificate of 'nodejs.org' is not trusted.
ERROR: The certificate of 'nodejs.org' hasn't got a known issuer.
I've never had this happen in many downloads from nodejs.org in the past. To download through wget, I now need to use --no-check-certificate for both the tarball and the SHASUMS.txt.asc file.
The text was updated successfully, but these errors were encountered: