[Vagrant 1.9.7] Install plugin behind corporate proxy

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Vagrant 1.9.7] Install plugin behind corporate proxy

Michele Bianchi
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

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: [Vagrant 1.9.7] Install plugin behind corporate proxy

Alvaro Miranda Aguilera
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

On Thu, Aug 10, 2017 at 4:45 PM, Michele Bianchi <[hidden email]> wrote:
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

--
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 [hidden email].
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex38DrFq4cOD8rz66JQNWsvc5E%3DpyorOEOVuOeHhx68rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Vagrant 1.9.7] Install plugin behind corporate proxy

Michele Bianchi
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

On Fri, 11 Aug 2017 at 12:26 Alvaro Miranda Aguilera <[hidden email]> wrote:
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

On Thu, Aug 10, 2017 at 4:45 PM, Michele Bianchi <[hidden email]> wrote:
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

--
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 [hidden email].



--
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex38DrFq4cOD8rz66JQNWsvc5E%3DpyorOEOVuOeHhx68rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAGxowvPh5kwOV%3DfKWAeHmcCQu5_Z2zP%3DGJyiVuDRDOyxqnbnBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.