remote error: tls: bad certificate
const-tmp opened this issue · 4 comments
➜ ~ nomad-pack version
Nomad Pack v0.0.1-techpreview2
➜ ~ nomad-pack status
! Error Retrieving Packs
Error: error finding jobs: Get "https://xxxxx:4646/v1/jobs": remote error: tls: bad certificate
Type: *errors.errorString
Context:
- Pack Name:
Nomad CLI works as expected
➜ ~ nomad status
ID Type Priority Status Submit Date
All envs are set
➜ ~ env | grep NOMAD
NOMAD_ADDR=https://xxxxx:4646
NOMAD_CLIENT_CERT=/path/to/client-cert.pem
NOMAD_CLIENT_KEY=/path/to/client-key.pem
NOMAD_TOKEN=xxxxxxx
I didn't see your NOMAD_CACERT env var set in the ones you provided; however if the Nomad CLI command ran, I expect that there is sufficient configuration in your environment. As for the error, If possible, I would encourage you to test this again with TP3. In TP2 several of the client environment variables were not connected to pack's internal Nomad client causing interesting issues like this. Please let me know the result of any testing you might do.
I just noticed that TP2 was listed as the latest release on GH, so I also resolved that. Sorry if that led you into an older version.
Thanks for the reply! Tried https://github.com/hashicorp/nomad-pack/releases/tag/nightly and it works
Awesome! I appreciate you for letting us know and for giving pack a run!