vagrant boxイメージをダウンロードしようとするとエラーになる
上記サイトの続きです。
一旦整理するために新たに記載いたします。
使用macOS バージョン 10.12.5
何かのきっかけでvagrant box addするとエラーが出るようになってしまいました。
一応ググりながら、色々なことを試してはいるのですが、なかなか思うように行きません。
-
git clone
でhttpsのものをcloneしようとするとエラーとなる。 -
どうやら鍵の設定らしく、以前もした覚えがあったが、再度作り直す。以下参照お前らのSSH Keysの作り方は間違っている(以前の鍵はgithub上のものだけ削除、ターミナル上のものはいじらずリンク先のものをそのまま設定)
-
順調に鍵の設定が終わり、github上に鍵の登録を済ます。
-
前の質問でアドバイスいただいた
brew install curl --with-openssl && brew link curl --force
を試す(終わるのに30分以上かかりました) -
以下のサイトを参考に
sudo rm -rf /opt/vagrant/embedded/bin/curl
を実行してみるも変化なし。 Vagrant 1.8.7(Mac)の"vagrant box add ~~" でエラーとなる場合の対処法
入力sudo vagrant box add centos7-mysql http://github.com/CommanderK5/packer-centos-template/releases/download/0.7.1/vagrant-centos-7.1.box
bash
1==> box: Box file was not detected as metadata. Adding it directly... 2==> box: Adding box 'centos7-mysql' (v0) for provider: 3 box: Downloading: http://github.com/CommanderK5/packer-centos-template/releases/download/0.7.1/vagrant-centos-7.1.box 4An error occurred while downloading the remote file. The error 5message, if any, is reproduced below. Please fix this error and try 6again. 7 8SSL certificate problem: self signed certificate in certificate chain 9More details here: https://curl.haxx.se/docs/sslcerts.html 10 11curl performs SSL certificate verification by default, using a "bundle" 12 of Certificate Authority (CA) public keys (CA certs). If the default 13 bundle file isn't adequate, you can specify an alternate file 14 using the --cacert option. 15If this HTTPS server uses a certificate signed by a CA represented in 16 the bundle, the certificate verification probably failed due to a 17 problem with the certificate (it might be expired, or the name might 18 not match the domain name in the URL). 19If you'd like to turn off curl's verification of the certificate, use 20 the -k (or --insecure) option. 21MacBook-Pro:~ takanashikazuma$su
入力vagrant box add chef/centos-6.6
bash
1The box 'chef/centos-6.6' could not be found or 2could not be accessed in the remote catalog. If this is a private 3box on HashiCorp's Atlas, please verify you're logged in via 4`vagrant login`. Also, please double-check the name. The expanded 5URL and error message are shown below: 6 7URL: ["https://atlas.hashicorp.com/chef/centos-6.6"] 8Error: SSL certificate problem: self signed certificate in certificate chain 9More details here: https://curl.haxx.se/docs/sslcerts.html 10 11curl performs SSL certificate verification by default, using a "bundle" 12 of Certificate Authority (CA) public keys (CA certs). If the default 13 bundle file isn't adequate, you can specify an alternate file 14 using the --cacert option. 15If this HTTPS server uses a certificate signed by a CA represented in 16 the bundle, the certificate verification probably failed due to a 17 problem with the certificate (it might be expired, or the name might 18 not match the domain name in the URL). 19If you'd like to turn off curl's verification of the certificate, use 20 the -k (or --insecure) option. 21HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure. 22MacBook-Pro:~ takanashikazuma$ 23
随時試したことを記載していこうと思っています。
何かわかるかたいましたらアドバイスよろしくお願いします。
回答1件
あなたの回答
tips
プレビュー