Vagrant: erro de verificação SSL por trás do proxy corporativo

0

Minha empresa usa um proxy. Eu estou usando um notebook Windows 10 de 64 bits. Versão Vagrant 2.1.1. Ao tentar instalar um plugin do Vagrant, por exemplo,

vagrant plugin install vagrant-proxyconf

Eu vejo o seguinte erro:

Installing the 'vagrant-proxyconf' plugin. This can take a few minutes...
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /DC=net/DC=<MY_COMPANY>/DC=corp/CN=<CA-Name> to your local trusted store
Vagrant failed to load a configured plugin source. This can be caused by a variety of issues including: transient connectivity, 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/

Eu tentei as etapas mostradas aqui: link

set http_proxy=http://user:password@host:port
set https_proxy=http://user:password@host:port
vagrant plugin install vagrant-proxyconf

mas isso não ajudou.

Após exportar o certificado mencionado (espero que tenha sido o correto; há dois certificados com o mesmo nome) acima e adicioná-lo a ... \ HashiCorp \ Vagrant \ embedded \ cacert.pem

(como sugerido por Instalando o plugin vagrant na rede corporativa ), recebi outro erro de SSL:

Installing the 'vagrant-proxyconf' plugin. This can take a few minutes...
ERROR: SSL verification error at depth 2: unable to get issuer certificate (2)
Vagrant failed to load a configured plugin source. This can be caused by a variety of issues including: transient connectivity, 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/
    
por Sebi 26.06.2018 / 09:57

0 respostas