Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

skip certificate validation on "vagrant up"

Tags:

curl

vagrant

I'd like to skip the curl certificate validation on vagrant up since our proxy MITMs https, so curls' usual SSL cert error pops up.

I tried vagrant up --insecure puppetlabs/debian-7.8-32-nocm but that didn't change anything. Next I tried config.vm.box_download_insecure and config.vm.box_download_insecure = "puppetlabs/debian-7.8-32-nocm" in the Vagrantfile, but alas - no luck.

  • What's the URL for config.vm.box_download_insecure if I use boxes from atlas?
  • Is there another possibility to make curl skip cert checks?
like image 819
Jan Avatar asked Apr 01 '15 11:04

Jan


People also ask

How do I ignore a certificate check?

To bypass SSL certificate validation for local and test servers, you can pass the -k or --insecure option to the Curl command. This option explicitly tells Curl to perform "insecure" SSL connections and file transfers. Curl will ignore any security warnings about an invalid SSL certificate and accept it as valid.

How do I disable curl check certificate?

If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.


1 Answers

It is expecting a boolean (true/false).

config.vm.box_download_insecure = true

https://www.vagrantup.com/docs/vagrantfile/machine_settings.html

config.vm.box_download_insecure - If true, then SSL certificates from the server will not be verified. By default, if the URL is an HTTPS URL, then SSL certs will be verified.

like image 70
travisneids Avatar answered Sep 28 '22 03:09

travisneids