From 2e23e6b8f54ec428d4017d3e4e76539243efb64e Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 20 Jan 2024 17:31:30 -0500 Subject: [PATCH] certificate: Fix store directory creation --- certificate/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }