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.
config.vm.box_download_insecure
if I use boxes from atlas?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.
If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With