Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vagrant up command throwing ssl error

Tags:

vagrant

Looks like the error originates because I'm behind company firewall, at least that's my theory.

I have tried tried the option suggested in the error message and running vagrant up with --insecure flag, but that's not the option for the up command, but only for add command. However I already have a Vagrantfile and all the corresponding config so I only need to run vagrant up. What's the solution here?

vagrant up

    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and in
    stall...
        default: Box Provider: virtualbox
        default: Box Version: >= 0
    The box 'ubuntu/trusty64' could not be found or
    could not be accessed in the remote catalog. If this is a private
    box on HashiCorp's Atlas, please verify you're logged in via
    `vagrant login`. Also, please double-check the name. The expanded
    URL and error message are shown below:

    URL: ["https://atlas.hashicorp.com/ubuntu/trusty64"]
    Error: SSL certificate problem: self signed certificate in certificate chain
    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.

sdfsdf

like image 365
Ska Avatar asked Mar 10 '17 12:03

Ska


People also ask

What is vagrant up command?

Command: vagrant up [name|id] This command creates and configures guest machines according to your Vagrantfile. This is the single most important command in Vagrant, since it is how any Vagrant machine is created. Anyone using Vagrant must use this command on a day-to-day basis.

How do you run commands in vagrant?

If you run vagrant by itself, help will be displayed showing all available subcommands. In addition to this, you can run any Vagrant command with the -h flag to output help about that specific command. For example, try running vagrant init -h .

How do I fix my vagrant?

Ticket 16318 states that the fix is to uninstall VirtualBox, reboot your system, and then reinstall it. If you get some other error message, do the standard thing: use your favorite web engine to search for "vagrant key words from error message".

Which vagrant command starts a vagrant virtual machine?

When you log into the virtual machine, by default it starts in the /home/vagrant/ directory. A different directory, /vagrant/, holds the same files that are on your host system. You can use vagrant up and vagrant ssh to launch and log into the virtual machine, then create a test document in the /vagrant directory.


1 Answers

You might need to run in 2 steps.

  1. download the box using the insecure flag

    vagrant box add ubuntu/trusty64 --insecure
    
  2. spin up your VM

    vagrant up
    
like image 191
Frederic Henri Avatar answered Jan 10 '23 01:01

Frederic Henri