[Vagrant 1.9.7] Install plugin behind corporate proxy

373 views
Skip to first unread message

Michele Bianchi

unread,
Aug 10, 2017, 10:45:18 AM8/10/17
to Vagrant
Hi,
I have been trying to install a vagrant plugin behind a corporate proxy and whatever I do I always get the same error:

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

I have tried to use the SSL_CERT_FILE environmental variable, add the non-https rubygem.org repository and use another repository altogether. 
I have also tried to revert to an older version (the one that is shipped on Ubuntu 16.04) and that is broken in another way.
My company's certificates are already installed in the system and I have updated the certificates.

Rubygem works out of the box on my current setup (I have checked by updating the installed gems and install a new one).

How can I fix this issue?

Thanks,
Michele

Alvaro Miranda Aguilera

unread,
Aug 11, 2017, 6:26:15 AM8/11/17
to vagra...@googlegroups.com
you can try using the curl from embedded path and see if all works.

ie:

find /opt/vagrant -name 'curl'

export HTTP_PROXY=<proxy here>
export HTTPS_PROXY=<proxy here>

export SSL_CERT_FILE=<path to ssl cert>

<path to vagrant curl> -L https://https://api.rubygems.org/specs.4.8.gz

Alvaro

Virusvrij. www.avast.com

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/d7aff3b7-8dfb-459c-8832-4fd766b37174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Michele Bianchi

unread,
Aug 11, 2017, 6:34:48 AM8/11/17
to vagra...@googlegroups.com
Hi Alvaro,
thanks for the suggestion.
I have managed to fix the issue by manually appending the two certificates to the certificate file in Vagrant's path, namely in /opt/vagrant/embedded/cacert.pem

Thanks again,
Michele

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/IypEHinkl3M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex38DrFq4cOD8rz66JQNWsvc5E%3DpyorOEOVuOeHhx68rA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages