4

私はvagrantを初めて使用しますが、数か月前に一度試しました。

今は動作しません。puphpet 構成を生成してダウンロードしました - もちろん ruby​​ と puppet gem と virtualbox がインストールされています - しかし、vagrant を起動すると、証明書に関するエラーがプッシュされます。

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'hashicorp/trusty64' could not be found. Attempting to fin
 install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'hashicorp/trusty64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, 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://atlas.hashicorp.com/hashicorp/trusty64"]
Error: SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

mozilla CA バンドル証明書をインストールし、システム変数「SSL_CERTIFICATE_PATH」を追加しました。パスは機能しています。これは、gem パッケージ マネージャーの問題の解決策でした。

誰でもこれを理解する方法を知っていますか?

前もって感謝します、ダニー

私が取り組んでいるシステム: (Win7 x64、Ruby 2.1.5p、Vagrant 1.7.2、git がインストールされている)


解決済み

認証の問題は、システム上の AVG アンチウイルスの障害であり、AVG ファイアウォールが原因で cURL がルックアップできませんでした。しばらく avg をオフにして、ボックスをダウンロードしました...その後、avg を再度実行すると、以前にダウンロードしたボックスでボックスを起動できました。

4

3 に答える 3

1

これを puppet で作成するとおっしゃいましたが、表示hashicorp/trusty64されるということは、Vagrantfile.

puphpet の構成は、そうでない他のボックスで動作するはずpuphpet/*ですが、それらの「公式」サポートを提供することはできませんし、提供するつもりもありません。Puphpet も新しくて小さいので、問題に対して詳細な回答を提供できる SO のユーザーはそれほど多くありません。

于 2015-01-12T04:58:28.677 に答える
1

vagrant パッケージのインストール中は、ウイルス対策ソフトウェアを無効にしてください。ウイルス対策プログラムは、インストール中に CA 証明書バンドルをサイレント モードで削除するようです。

于 2015-01-12T14:29:52.787 に答える