Where in vagrantfile do I specify --insecure

1,985 views
Skip to first unread message

Sayth Renshaw

unread,
Dec 31, 2014, 2:16:23 AM12/31/14
to vagra...@googlegroups.com


I am trying to get a box up and am having the SSL error. I have tried putting the --insecure box option in multiple locations but cannot get success.

https://docs.vagrantup.com/v2/cli/box.html

This is my current Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(2) do |config|
  config.vm.box = "--insecure data-science-toolbox/data-science-at-the-command-line"
  config.vm.network "forwarded_port", guest: 8000, host: 8000
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.memory = 2048
    vb.cpus = 2
  end
end

Umair Chagani

unread,
Dec 31, 2014, 2:23:32 AM12/31/14
to vagra...@googlegroups.com

Just a shot in the dark but I believe you specify this at the terminal and not inside the vagrantfile. So something like:

vagrant up --insecure

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sayth Renshaw

unread,
Dec 31, 2014, 3:16:09 AM12/31/14
to vagra...@googlegroups.com, umair....@gmail.com


On Wednesday, 31 December 2014 18:23:32 UTC+11, Umair Chagani wrote:

Just a shot in the dark but I believe you specify this at the terminal and not inside the vagrantfile. So something like:

vagrant up --insecure



That fails
sayth@:~/MyDataScienceToolbox$ vagrant up --insecure
An invalid option was specified. The help for this command
is available below.

and if you precede it, it just gets ignored and SSL error reappears.

 sayth@:~/MyDataScienceToolbox$ vagrant --insecure up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'data-science-toolbox/data-science-at-the-command-line' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'data-science-toolbox/data-science-at-the-command-line'
    default: URL: https://atlas.hashicorp.com/data-science-toolbox/data-science-at-the-command-line
==> default: Adding box 'data-science-toolbox/data-science-at-the-command-line' (v1.0.0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/data-science-toolbox/boxes/data-science-at-the-command-line/versions/1.0.0/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

SSL certificate problem: unable to get local issuer certificate
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). 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.

Sayth

Sayth Renshaw

unread,
Dec 31, 2014, 3:28:52 AM12/31/14
to vagra...@googlegroups.com
SOLVED

change vagrantfile to


# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(2) do |config|
  config.vm.box_download_insecure = "data-science-toolbox/data-science-at-the-command-line"
  config.vm.box = "data-science-toolbox/data-science-at-the-command-line"

  config.vm.network "forwarded_port", guest: 8000, host: 8000
  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.memory = 2048
    vb.cpus = 2
  end
end

David West

unread,
Mar 30, 2016, 1:53:51 PM3/30/16
to Vagrant, flebbe...@gmail.com
`config.vm.box_download_insecure = true` makes a little more sense than

`config.vm.box_download_insecure = "data-science-toolbox/data-science-at-the-command-line"`
Reply all
Reply to author
Forward
0 new messages