Problema de certificado SSL ao baixar uma box no vagrant

15:27 Unknown 0 Comments

Olá, hoje ao tentar iniciar uma nova box utilizando Vagrant, acabei tendo problemas com certificação. Como não achei solução específica e em português pela internet, resolvi compartilhar pra ajudar quem possa ter o mesmo problema.

Problema retornado pelo GitShell no windows:
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.


Solução encontrada:
O comando abaixo foi adicionado no meu Vagrantfile para que ignorasse o certificado SSL que estava impedindo o download da box.
config.vm.box_download_insecure = "https://caminhoparadownload.nomedabox.box"
Após alterado o Vagrantfile, basta executar "vagrant up" novamente.

Referencias:
https://docs.vagrantup.com/v2/vagrantfile/machine_settings.html


0 comentários:

Dual Boot Windows x Linux - ASUS X550LA

10:49 Unknown 1 Comments

Problema/Solução

Eu estava tentando instalar o Ubuntu no meu notebook, tentei diversas versões e diversas formas (dual boot, instalação, formatação) e não conseguia de jeito nenhuma por causa da UEFI na BIOS. Depois de muita pesquisa sem encontrar informação que me ajudasse, resolvi fazer uma atualização da BIOS para tentar a sorte e finalmente funcionou, então to compartilhando caso alguém venha a ter o mesmo problema.

Notebook: Asus X550LA
BIOS: X550LA.505
Versão atual da BIOS (05/05/2015): X550LA.509
 (Print doo suporte da Asus - Download de drivers)

Eu baixei a nova versão da BIOS (509) do site da Asus e segui o seguinte tutorial para fazer a atualização.
Link do tutorial: https://www.youtube.com/watch?v=SZKQ-0tuqQg
Depois de atualizar a minha BIOS, fiz a instalação novamente (ao lado do windows) e funcionou, apareceu a janelinha para escolher qual sistema operacional eu queria iniciar, conforme o esperado.



Erros ocorridos durante as tentativas

• Uma das primeiras tentativas que fiz foi restaurar o boot pela live do Ubuntu, mas ao instalar o Boot Repair dava o seguinte erro.

"The current session is in Legacy mode. Please reboot the computer, and use this software in an EFI session. This will enable this feature. For example, use a live-USB of Boot-Repair-Disk-64bit, after making sure your BIOS is set up to boot USB in EFI mode."
Acho que esse erro ocorria porque minha versão antiga da bios não permitia mudar o Legacy mode. De qualquer forma, não deu certo até atualizar a BIOS.



Observações

Link de como configurar o boot pelo pendrive:
https://www.youtube.com/watch?v=AM9UyNcSEU0
Link de como fazer o pendrive bootavel para funcionar na opção UEFI:
https://www.youtube.com/watch?v=FzVHxevBw2E

Qualquer dúvida envia nos comentários que talvez eu possa ajudar. 

1 comentários: