Skatteetaten / vagrant-hashistack-template

Starter template for development using the vagrantbox Skatteetaten/hashistack
14 stars 8 forks source link

vagrant "Unable to get local issuer certificate" #71

Closed pdmthorsrud closed 4 years ago

pdmthorsrud commented 4 years ago

Current behaviour

Throws error

~/projects/terraform-nomad-presto(master) » vagrant box update
==> default: Checking for updates to 'fredrikhgrelland/hashistack'
    default: Latest installed version: 0.6.1
    default: Version constraints: >= 0.6, < 0.7
    default: Provider: virtualbox
There was an error while downloading the metadata for this box.
The error message is shown below:

SSL certificate problem: unable to get local issuer certificate

Expected behaviour

Not throwing the error (checking box without fail)

How to reproduce?

  1. Have a Mac with transparent proxy
  2. Run vagrant box update, or any other command using vagrant

Suggestion(s)/solution(s) [Optional]

Most likely linked to https://github.com/fredrikhgrelland/vagrant-hashistack/issues/385, but I cannot seem to get it to work atm using that solution

Checklist (after created issue)

pdmthorsrud commented 4 years ago

Now gotten past the first issue, and I have no clue how. Assuming this might've been something wrong from my employer's side (we are testing out MacBooks, which I am using, and there has been some problems with certificates). Now I am stuck at

TASK [service_bootstrap : vault - post/pki - enable PKI backend] ***************
fatal: [default]: FAILED! => {
    "changed": false
}

MSG:

Failed to initialize Terraform modules:

Error: Failed to install provider

Error while installing hashicorp/vault v2.15.0: could not query provider
registry for registry.terraform.io/hashicorp/vault: failed to retrieve
authentication checksums for provider: the request failed after 2 attempts,
please try again later: Get
"https://releases.hashicorp.com/terraform-provider-vault/2.15.0/terraform-provider-vault_2.15.0_SHA256SUMS":
x509: certificate signed by unknown authority

PLAY RECAP *********************************************************************
default                    : ok=23   changed=5    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
make: *** [up] Error 1
--------------------------------------

after running make up. Assuming something somewhere is not pointing to the correct certificate-files. Investigating now.

pdmthorsrud commented 4 years ago

This just randomly resolved itself. Nothing different from what was described in fredrikhgrelland/vagrant-hashistack#385

Might be because I have a new MacBook, which is in the testing stage. They have had some problems with certs earlie