Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"unable to get local issuer certificate" during vagrant up, even after vagrant box add --insecure

Tags:

bash

vagrant

The version of Vagrant I installed was 2.2.3 and I am running version 6.3 of Windows 8. Let me copy below what I wrote into git bash and what the result was.

yishai and shira (master) vagrant $ vagrant box add --insecure bento/ubuntu-16.04 --insecure --force
==> box: Loading metadata for box 'bento/ubuntu-16.04'
    ...
==> box: Successfully added box 'bento/ubuntu-16.04' (v201812.27.0) for 'virtualbox'!
yishai and shira (master) vagrant $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-16.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: = 2.3.5
The box 'bento/ubuntu-16.04' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Vagrant Cloud, 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://vagrantcloud.com/bento/ubuntu-16.04"]
Error: SSL certificate problem: unable to get local issuer certificate
like image 673
yishairasowsky Avatar asked Dec 14 '22 13:12

yishairasowsky


1 Answers

You have 2 solutions to fix this issue:

  1. You can download the box using insecure flag

    vagrant box add --insecure bento/ubuntu-16.04 --insecure
    
  2. You can add the box_download_insecure flag directly in your Vagrantfile

    Vagrant.configure("2") do |config|
      config.vm.box = "bento/ubuntu-16.04"
      config.vm.box_download_insecure = true
    end
    
like image 57
Frederic Henri Avatar answered May 10 '23 23:05

Frederic Henri