Skip to content

Commit 3cb54f3

Browse files
authored
Merge pull request #8 from quix-labs/dev
fix: #7 replace RFC date in cache filename by Unix timestamp RFC format is replaced by Unix timestamp because Windows doesn't support colon in filename
2 parents 60fe4b3 + ea9f531 commit 3cb54f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ func (getter *PfxCertGetter) Provision(ctx caddy.Context) error {
6464
modTime := fileInfo.ModTime()
6565

6666
if *getter.FetchFullChain {
67-
getter.CacheCertName = getter.Path + "." + modTime.Format(time.RFC3339) + "-fullchain+pkey.pem"
67+
getter.CacheCertName = getter.Path + "." + modTime.Unix() + "-fullchain+pkey.pem"
6868
} else {
69-
getter.CacheCertName = getter.Path + "." + modTime.Format(time.RFC3339) + "-chain+pkey.pem"
69+
getter.CacheCertName = getter.Path + "." + modTime.Unix() + "-chain+pkey.pem"
7070
}
7171

7272
return nil

0 commit comments

Comments
 (0)