"невозможно получить сертификат локального эмитента" во время vagrant up, даже после добавления vagrant box --insecure - PullRequest
0 голосов
/ 25 января 2019

Версия Vagrant, которую я установил, была 2.2.3, и я использую версию 6.3 Windows 8. Позвольте мне скопировать ниже, что я написал в git bash и каков был результат.

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

1 Ответ

0 голосов
/ 27 января 2019

У вас есть 2 решения, чтобы решить эту проблему:

  1. Вы можете загрузить коробку, используя insecure флаг

    vagrant box add --insecure bento/ubuntu-16.04 --insecure
    
  2. Выможете добавить флаг box_download_insecure прямо в ваш Vagrantfile

    Vagrant.configure("2") do |config|
      config.vm.box = "bento/ubuntu-16.04"
      config.vm.box_download_insecure = true
    end
    
...