Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal CA cert support for all commands #211

Open
nlloyd opened this issue Apr 9, 2020 · 2 comments
Open

Internal CA cert support for all commands #211

nlloyd opened this issue Apr 9, 2020 · 2 comments

Comments

@nlloyd
Copy link

nlloyd commented Apr 9, 2020

safe target --ca-cert path/to/internal/ca/cert.pem https://private-cert-vault.myorg myvault
safe auth ldap
... works just fine ...
safe get path/to/any/secret
!! Transport Error: Get https://private-cert-vault.myorg:443/v1/sys/internal/ui/mounts: x509: certificate signed by unknown authority

Given the option to specify a ca-cert with the target suggests that I would be able to avoid adding a -k to every command but this is not the case.
Am I misunderstanding the intent behind --ca-cert or is this a legitimate bug?

I am using the latest release installed by brew.

@jhunt
Copy link
Contributor

jhunt commented Apr 24, 2020

I believe that is the intended use case; targeting with a CA certificate should cause safe to remember the CA certificate for subsequent interactions with that target.

What is the output of safe -v?

@nlloyd
Copy link
Author

nlloyd commented Apr 29, 2020

safe v1.5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants