前提・実現したいこと
vagrantでBOXを取得する際、SSL経由で追加したい。
現在、vagrantの公式サイトではvagrant initでVagrantfileを準備し、BOXをvagrant upで準備開始となるかと思いますが、エラーメッセージのとおり、SSLの問題で取得ができません。
以前の手順を利用して、vagrant box addに-insecureオプションを追加してSSLを無視して操作をしておりますが、安全面が危惧されます。
-insecureオプションを使用せず、さらにSSLのエラーメッセージを出さずに処理をするには、どこにSSLの設定を行えばよいのでしょうか。
ご教示いただけますと幸いです。
よろしくお願いいたします。
発生している問題・エラーメッセージ
Error: SSL certificate problem: self signed certificate in certificate chain
該当のソースコード
hoge>vagrant box add centos/7 The box 'centos/7' 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/centos/7"] Error: SSL certificate problem: self signed certificate in certificate chain
試したこと
hoge>vagrant box -insecure add centos/7
上記の通り、-insecureオプションを付与してコマンドを実行。
vagrant init
vagrant up
により、問題なくテスト環境の構築はできております。
補足情報(FW/ツールのバージョンなど)
現在使用している環境となります
Vagrant 2.2.5
VirtualBOX 6.0.8 r130520 (Qt5.6.3)
MacOSX 10.14.5
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。