diff --git a/certificate/store.go b/certificate/store.go index a106946..db0180e 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -161,7 +161,7 @@ func (s *Store) createCertificate(scope string) (tls.Certificate, error) { // and private keys named "scope.crt" and "scope.key" respectively, // where "scope" is the scope of the certificate. func (s *Store) Load(path string) error { - if err := os.MkdirAll(filepath.Dir(path), 0700); err != nil { + if err := os.MkdirAll(path, 0700); err != nil { return err }