rubyvagrant-windows

Unable to install vagrant plugin due to SSL_Connect error


Hello so I am trying to install a vagrant plugin but I getting the following error in mingW64

$ vagrant plugin install vagrant-winnfsd
Installing the 'vagrant-winnfsd' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

 SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/

I am behind a firewall and have to pass the company cert manually. I updated my Ruby certs but still no luck. Anyone have any clue why vagrant is not taking my pem/certs?


Solution

  • Well funny thing. Vagrant uses its own certs. Inside of its folder:

    the path is: C:\HashiCorp\Vagrant\embedded\cacert.cert on windows.

    Add your company cert and you should be good to go.

    I solved my own issue. Hopefully this helps someone else.