Skip to content

Enhance CA chain logging and error handling #19

@Syoc

Description

@Syoc

I'm having issues troubleshooting 404 issues with the cert/ca endpoint.
Vault returns "Failed to fetch CA list from EJBCA" and a 404 request to "https://my-domain.com/ejbca/ejbca-rest-api/v1/ca//certificate/download".
Reading the code makes it look like the caName match here never hits.

More logging with results from the ListCas endpoint would make this issue easier to debug.

I also makes more sense to me to error out if the for loop completes without a caName match instead of requesting a certificate for empty string.

Running vault version 1.16.3 and plugin version 1.4.0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions