Git Product home page Git Product logo

Comments (7)

rwrobe avatar rwrobe commented on July 29, 2024 1

If you come across this, as I have, the solution is to download Vagrant from the website itself as opposed to using the apt version in Canonical's sources, which is out of date and has this issue.

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

What version of Vagrant are you runniing?

from scotch-box.

Zegnat avatar Zegnat commented on July 29, 2024

What version of Vagrant are you runniing?

Version 1.7.1, like I wrote, I think that’s the latest.

$ vagrant --version
Vagrant 1.7.1

from scotch-box.

Zegnat avatar Zegnat commented on July 29, 2024

It looks like this might be an upstream problem, Vagrant shipping with a faulty certificate bundle in cURL: hashicorp/vagrant#5001.

I personally haven’t gotten it to work yet, even swapping out the cacert.pem file, but I might just be doing it wrong.

from scotch-box.

Zegnat avatar Zegnat commented on July 29, 2024

For people running into problems, it should work using --insecure:

$ vagrant box add scotch/box --insecure

This will still leave some problems. For example, vagrant up will try to check for scotch/box updates and will fail. My full Terminal log:

$ vagrant box add scotch/box --insecure
==> box: Loading metadata for box 'scotch/box'
    box: URL: https://atlas.hashicorp.com/scotch/box
==> box: Adding box 'scotch/box' (v1.0.2) for provider: virtualbox
    box: Downloading: https://atlas.hashicorp.com/scotch/boxes/box/versions/1.0.2/providers/virtualbox.box
==> box: Successfully added box 'scotch/box' (v1.0.2) for 'virtualbox'!
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'scotch/box'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'scotch/box' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default: 
==> default: SSL certificate problem: self signed certificate in certificate chain
==> default: More details here: http://curl.haxx.se/docs/sslcerts.html
==> default: 
==> default: curl performs SSL certificate verification by default, using a "bundle"
==> default:  of Certificate Authority (CA) public keys (CA certs). If the default
==> default:  bundle file isn't adequate, you can specify an alternate file
==> default:  using the --cacert option.
==> default: If this HTTPS server uses a certificate signed by a CA represented in
==> default:  the bundle, the certificate verification probably failed due to a
==> default:  problem with the certificate (it might be expired, or the name might
==> default:  not match the domain name in the URL).
==> default: If you'd like to turn off curl's verification of the certificate, use
==> default:  the -k (or --insecure) option.
==> default: 
==> default: If you want to check for box updates, verify your network connection
==> default: is valid and try again.
==> default: Setting the name of the VM: my-project_default_1419766646626_36888
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if its present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 4.3
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => /Users/admin/Sites/my-project

from scotch-box.

whatnickcodes avatar whatnickcodes commented on July 29, 2024

I noticed this too. I'll be waiting for an update from Vagrant to address this. Thanks for the workaround.

from scotch-box.

vipin733 avatar vipin733 commented on July 29, 2024

thanks its working using '' --insecure ''

from scotch-box.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.