1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-14 22:00:48 +02:00

certificate: Fix store directory creation

This commit is contained in:
adnano 2024-01-20 17:31:30 -05:00
parent b3e1a7053d
commit 2e23e6b8f5

View File

@ -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
}