hashicorp / hashicorp/go-rootcerts

Error Loading Certs from Directory

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
84
Forks
18
PR merge metrics
No merged PRs in 30d

Description

It appears like there is no way to exclude a subdirectory when trying to load certs from a specific path.

I am running into an issue using the `vault-ssh-helper` and think this is the root cause.

Ideally, [this line](https://github.com/hashicorp/go-rootcerts/blob/63503fb4e1eca22f9ae0f90b49c5d5538a0e87eb/rootcerts.go#L91) shouldn't be erroring IMO, rather it should be throwing a warning.

Alternatively, a way to specify specific files/dirs to exclude when calling [`LoadCAPath`](https://github.com/hashicorp/go-rootcerts/blob/63503fb4e1eca22f9ae0f90b49c5d5538a0e87eb/rootcerts.go#L73) would help resolve this issue too.

Any advice would be much appreciated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.