From be3d09d7f4f1a3526555fcaa8daacdd5bb50a73e Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 6 Mar 2021 13:10:45 -0500 Subject: [PATCH] certificate.Store: Don't call os.MkdirAll --- certificate/store.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/certificate/store.go b/certificate/store.go index 871f38e..0cf0392 100644 --- a/certificate/store.go +++ b/certificate/store.go @@ -6,7 +6,6 @@ import ( "crypto/x509/pkix" "errors" "fmt" - "os" "path/filepath" "strings" "sync" @@ -83,10 +82,6 @@ func (s *Store) write(scope string, cert tls.Certificate) error { if s.path != "" { certPath := filepath.Join(s.path, scope+".crt") keyPath := filepath.Join(s.path, scope+".key") - - dir := filepath.Dir(certPath) - os.MkdirAll(dir, 0755) - if err := Write(cert, certPath, keyPath); err != nil { return err }