aboutsummaryrefslogtreecommitdiff
path: root/certificate
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-03-06 13:10:45 -0500
committerAdnan Maolood <[email protected]>2021-03-06 13:11:11 -0500
commitbe3d09d7f4f1a3526555fcaa8daacdd5bb50a73e (patch)
tree077f6510c76ea9b92b904891755f3fb00a80853b /certificate
parentcertificate.Store: Don't check parent scopes in Lookup (diff)
downloadgo-gemini-be3d09d7f4f1a3526555fcaa8daacdd5bb50a73e.tar.xz
go-gemini-be3d09d7f4f1a3526555fcaa8daacdd5bb50a73e.zip
certificate.Store: Don't call os.MkdirAll
Diffstat (limited to 'certificate')
-rw-r--r--certificate/store.go5
1 files changed, 0 insertions, 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
}