エラーメッセージ
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: self signed certificate in certificate chain
現象
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'bento/centos-6.7' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Box file was not detected as metadata. Adding it directly... ==> default: Adding box 'bento/centos-6.7' (v0) for provider: virtualbox default: Downloading: https: 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: self signed certificate in certificate chain |
対策
Vagrantfileに以下の一文を追加する
config.vm.box_download_insecure = true
1 2 3 4 5 6 |
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box_download_insecure = true (略) end |
参考
https://github.com/hashicorp/vagrant/issues/5001
超おすすめ書籍
「vagrant up 時にSSLエラー が出た時の対策」への1件のフィードバック