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 <[email protected]> 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 > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > Virusvrij. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> > <#m_3804843422010859357_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > On Thu, Aug 10, 2017 at 4:45 PM, Michele Bianchi <[email protected]> > 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 [email protected]. > > >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/vagrant-up/d7aff3b7-8dfb-459c-8832-4fd766b37174%40googlegroups.com >> <https://groups.google.com/d/msgid/vagrant-up/d7aff3b7-8dfb-459c-8832-4fd766b37174%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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 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 > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex38DrFq4cOD8rz66JQNWsvc5E%3DpyorOEOVuOeHhx68rA%40mail.gmail.com > <https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex38DrFq4cOD8rz66JQNWsvc5E%3DpyorOEOVuOeHhx68rA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. 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.
