Vagrant: خيار Vagrantfile وغير الآمن (إصدار الشهادة)

تم إنشاؤها على ١ يوليو ٢٠١٣  ·  3تعليقات  ·  مصدر: hashicorp/vagrant

أهلا!

لقد كتبت Vagrantfile الذي يقوم بتنزيل صندوقي المخصص عبر httpS.
من الممكن أن أتصل بـ vagrant box add --insecure ... لكن لا يمكنني العثور على أي طريقة لتجاهل certifacte من خلال Vagrantfile.
عندما أشارك Vagrantfile والمطور يسأل vagran up فإنه يحصل على أخطاء:

Downloading or copying the box...
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
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.

هل من الممكن إضافة نوع من الخيار config.vm.box_download_insecure = true ؟

التعليق الأكثر فائدة

لقد وجدت الحل الوحيد بالنسبة لي حتى الآن هو فتح الملف التالي:
C:\HashiCorp\Vagrant\embedded\gems\2.0.3\gems\vagrant-2.0.3\lib\vagrant\util\downloader.rb

قم بتعديل خيارات curl (باتجاه أسفل الملف:

# options << "--insecure" if <strong i="9">@insecure</strong>
options << "--insecure"

ال 3 كومينتر

المطابقة رقم 1712

لقد وجدت الحل الوحيد بالنسبة لي حتى الآن هو فتح الملف التالي:
C:\HashiCorp\Vagrant\embedded\gems\2.0.3\gems\vagrant-2.0.3\lib\vagrant\util\downloader.rb

قم بتعديل خيارات curl (باتجاه أسفل الملف:

# options << "--insecure" if <strong i="9">@insecure</strong>
options << "--insecure"

سأقوم بإغلاق هذه المشكلة لأنه تم إغلاقه لمدة _30 يومًا_ ⏳. يساعد هذا المشرفين لدينا في العثور على المشكلات النشطة والتركيز عليها.

إذا وجدت مشكلة تبدو مشابهة لهذا ، فالرجاء فتح مشكلة جديدة وإكمال نموذج المشكلة حتى نتمكن من الحصول على جميع التفاصيل اللازمة لإجراء مزيد من التحقيق.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات