Permalink
Browse files

adding -k (--insecure) option to curl for old systems without of date…

… CRTs

e.g:

$ curl -L http://xrl.us/installperlnix
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
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). The default
 bundle is named curl-ca-bundle.crt; 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.
  • Loading branch information...
1 parent 02bf04c commit 49cbe04c911e91b10d1f8946759b6774074c26fc @ranguard committed Jun 15, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 README
  2. +1 −1 scripts/install_perl_on_nix.sh
  3. +1 −1 scripts/install_perl_on_osx.sh
View
4 README
@@ -1,10 +1,10 @@
Scripts and help documentation on installing Perl
# OSX - using Perlbrew setups your environment and installs Perl
-curl -L http://xrl.us/installperlosx | bash
+curl -k -L http://xrl.us/installperlosx | bash
# Unix/Linux - using Perlbrew setups your environment and installs Perl
-curl -L http://xrl.us/installperlnix | bash
+curl -k -L http://xrl.us/installperlnix | bash
# Windows see this video (though does need updating)
http://www.youtube.com/watch?v=1RHYPM6e55o
View
2 scripts/install_perl_on_nix.sh
@@ -24,7 +24,7 @@ if [ -d "$CPANMTMP" ]; then
fi
echo "Installing perlbrew"
-curl -L http://xrl.us/perlbrewinstall | bash
+curl -k -L http://xrl.us/perlbrewinstall | bash
echo "Checking/updating $BASHR to source perlbrew bashrc"
if [ ! -f $BASHR ]; then
View
2 scripts/install_perl_on_osx.sh
@@ -44,7 +44,7 @@ if [ -d "$CPANMTMP" ]; then
fi
echo "Installing perlbrew"
-curl -L http://xrl.us/perlbrewinstall | bash
+curl -k -L http://xrl.us/perlbrewinstall | bash
# Build as i386 only
arch=`uname -m`

0 comments on commit 49cbe04

Please sign in to comment.