Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to define if the box_url is insecure #1712

Closed
wants to merge 1 commit into from

Conversation

@igorbonadio
Copy link

igorbonadio commented May 10, 2013

Currently, it's possible to download a box from an insecure server using the command:

vagrant box add mybox  https://insecureserver.com/mybox.box --insecure

But I think set it in a Vagrantfile is a good feature.

Vagrant.configure("2") do |config|
  config.vm.box = "mybox"
  config.vm.box_url = "https://insecureserver.com/mybox.box"
  config.vm.box_download_insecure = true
end
@fgrehm

This comment has been minimized.

Copy link
Contributor

fgrehm commented Jul 21, 2013

Hey @mitchellh, looks like you fixed this on af66f5f, shall we close this?

@mitchellh

This comment has been minimized.

Copy link
Member

mitchellh commented Jul 21, 2013

Oh I did, yep. Closing! Thanks.

@mitchellh mitchellh closed this Jul 21, 2013
dldinternet pushed a commit to dldinternet/vagrant that referenced this pull request Aug 26, 2013
dldinternet pushed a commit to dldinternet/vagrant that referenced this pull request Sep 1, 2013
@dragon788

This comment has been minimized.

Copy link
Contributor

dragon788 commented Feb 9, 2017

@mitchellh @sethvargo Since it is a terrible practice to disable SSL verification long term, would it be possible to add instructions on correcting the certificate issue the right way by catching this certificate error exception and giving a helpful suggestion, i.e. adding the certificate to the trust chain of the embedded Ruby and curl or better yet using the alternate CA path that was added to a newer Vagrant version? config.vm.box_download_ca_cert appears to be the new setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.