diff options
Diffstat (limited to 'certificate/store.go')
| -rw-r--r-- | certificate/store.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/certificate/store.go b/certificate/store.go index 83e4ffe..f5847b4 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -191,7 +191,8 @@ func (s *Store) Load(path string) error { continue } - scope := strings.TrimPrefix(crtPath, path) + scope := filepath.Clean(crtPath) + scope = strings.TrimPrefix(crtPath, filepath.Clean(path)) scope = strings.TrimPrefix(scope, "/") scope = strings.TrimSuffix(scope, ".crt") s.Add(scope, cert) |