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

Cert list operation not working #1325

Closed
bkrodgers opened this issue Apr 12, 2016 · 6 comments
Closed

Cert list operation not working #1325

bkrodgers opened this issue Apr 12, 2016 · 6 comments

Comments

@bkrodgers
Copy link
Contributor

The docs suggest you can list certs that have been registered in the cert auth backend. See https://www.vaultproject.io/docs/auth/cert.html

However, vault read /auth/cert/certs (or the equivalent curl) return unsupported operation.

@jefferai
Copy link
Member

I think you meant vault list...and for curl, either -X LIST or adding ?list=true to the URL.

@bkrodgers
Copy link
Contributor Author

@jefferai -- that worked, but that's not what the API docs say. Can you reopen this for a documentation fix?

@jefferai
Copy link
Member

It's what the API docs say, but I've added some more info to clarify it.

@bkrodgers
Copy link
Contributor Author

The API docs say the method is GET, not LIST.

@vishalnayak
Copy link
Member

@bkrodgers

See latest doc update commit from @jefferai
110c483

You can use the API in the following manner.

curl -X GET -H "x-vault-token:bbb" "http://127.0.0.1:8200/v1/auth/cert/certs?list=true"
OR
curl -X LIST -H "x-vault-token:bbb" "http://127.0.0.1:8200/v1/auth/cert/certs"

@jefferai
Copy link
Member

The docs said it was LIST (in the section heading) with the given endpoint. It also specified GET since listing can be done with GET using ?list=true. That's normal behavior for Vault listing but I have clarified it in this particular document.

In either case, the CLI command for listing is 'vault list', not 'vault read'.

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

3 participants