diff options
Diffstat (limited to 'plugin/pkg/tls/tls.go')
-rw-r--r-- | plugin/pkg/tls/tls.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/pkg/tls/tls.go b/plugin/pkg/tls/tls.go index dae509204..8d36d6823 100644 --- a/plugin/pkg/tls/tls.go +++ b/plugin/pkg/tls/tls.go @@ -7,6 +7,7 @@ import ( "net" "net/http" "os" + "path/filepath" "time" ) @@ -95,7 +96,7 @@ func loadRoots(caPath string) (*x509.CertPool, error) { } roots := x509.NewCertPool() - pem, err := os.ReadFile(caPath) + pem, err := os.ReadFile(filepath.Clean(caPath)) if err != nil { return nil, fmt.Errorf("error reading %s: %s", caPath, err) } |