Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl SSL certification error

I have been trying to install meteor on my macbook pro and have been facing problems with the certifications. I get the following error:

curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: https://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.

After using curl --insecure https://install.meteor.com | ssh, I get the following error message:

Downloading Meteor distribution

curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://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. Installation failed.

(Notice the installation failed message).

Please anyone help me with this issue.

Thanks in advance. Edit:

After running curl install.meteor.com | sh -x like Fedor asked me to run I got the following message:

  • run_it
  • RELEASE=1.2.1
  • PREFIX=/usr/local
  • set -e
  • set -u
  • exec ++ uname
  • UNAME=Darwin
  • '[' Darwin '>' MINGW -a Darwin '<' MINGX ']'
  • '[' Darwin '!=' Linux -a Darwin '!=' Darwin ']'
  • '[' Darwin = Darwin ']' ++ uname -p ++ sysctl -n hw.cpu64bit_capable
  • '[' i386 '!=' i386 -o 1 '!=' 1 ']'
  • grep BUNDLE_VERSION /usr/local/bin/meteor
  • PLATFORM=os.osx.x86_64
  • trap 'echo Installation failed.' EXIT
  • '[' -e /Users/usama/.meteor ']'
  • TARBALL_URL=https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/1.2.1/meteor-bootstrap-os.osx.x86_64.tar.gz
  • INSTALL_TMPDIR=/Users/usama/.meteor-install-tmp
  • rm -rf /Users/usama/.meteor-install-tmp
  • mkdir /Users/usama/.meteor-install-tmp
  • echo 'Downloading Meteor distribution' Downloading Meteor distribution
  • curl --progress-bar --fail https://d3sqy0vbqsdhku.cloudfront.net/packages-bootstrap/1.2.1/meteor-bootstrap-os.osx.x86_64.tar.gz
  • tar -xzf - -C /Users/usama/.meteor-install-tmp -o
like image 342
UsamaMan Avatar asked Jul 22 '26 23:07

UsamaMan


1 Answers

Quick answer is: installation script that you download by itself calls curl to download tarball, and it does so without -k option:

$ curl -s https://install.meteor.com | grep curl
curl --progress-bar --fail "$TARBALL_URL" | tar -xzf - -C "$INSTALL_TMPDIR" -o

To press curl into it you can add --insecure to your curlrc:

$ echo insecure >> ~/.curlrc

Or just use http:

$ curl http://install.meteor.com

But i would strongly advise to look into problem itself - there might be someone MitM'ing you. Certificate of install.meteor.com seems fine to me.

like image 174
Fedor Zhukov Avatar answered Jul 25 '26 15:07

Fedor Zhukov