高木のブログ

【Vagrant】vagrant up を実行した時に出た「SSL certificate problem: self-signed certificate in certificate chain」の対応

2023/11/09

問題

新しく開発環境を構築しようとしたら、vagrant up で起動しなかった

$ vagrant init bento/ubuntu-23.04
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bento/ubuntu-23.04' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'bento/ubuntu-23.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-23.04"]
Error: SSL certificate problem: self-signed certificate in certificate chain

解決方法

config.vm.box_download_insecure = true を追記してあげたら良い

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

SNS でシェアする


ytkg

Written by ytkg, Twitter, GitHub