[英]“unable to get local issuer certificate” during vagrant up, even after vagrant box add --insecure
我安装的Vagrant版本是2.2.3,运行的是Windows 8版本6.3。让我在下面复制复制到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
您有2个解决方案可解决此问题:
您可以使用insecure
标志下载该框
vagrant box add --insecure bento/ubuntu-16.04 --insecure
您可以直接在您的Vagrantfile中添加box_download_insecure
标志
Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-16.04" config.vm.box_download_insecure = true end
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.