Update examples

This commit is contained in:
adnano
2020-10-12 00:13:24 -04:00
parent 322e66ca1e
commit 3e640c3843
3 changed files with 8 additions and 25 deletions

View File

@@ -60,7 +60,7 @@ func (c *CertificateStore) Load(path string) error {
if err != nil {
continue
}
hostname := filepath.Base(crtPath)
hostname := strings.TrimSuffix(filepath.Base(crtPath), ".crt")
c.store[hostname] = cert
}
return nil