File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
"log/slog"
15
15
"os"
16
16
"software.sslmate.com/src/go-pkcs12"
17
- "time "
17
+ "strconv "
18
18
)
19
19
20
20
func init () {
@@ -64,9 +64,9 @@ func (getter *PfxCertGetter) Provision(ctx caddy.Context) error {
64
64
modTime := fileInfo .ModTime ()
65
65
66
66
if * getter .FetchFullChain {
67
- getter .CacheCertName = getter .Path + "." + modTime .Unix () + "-fullchain+pkey.pem"
67
+ getter .CacheCertName = getter .Path + "." + strconv . FormatInt ( modTime .Unix (), 10 ) + "-fullchain+pkey.pem"
68
68
} else {
69
- getter .CacheCertName = getter .Path + "." + modTime .Unix () + "-chain+pkey.pem"
69
+ getter .CacheCertName = getter .Path + "." + strconv . FormatInt ( modTime .Unix (), 10 ) + "-chain+pkey.pem"
70
70
}
71
71
72
72
return nil
You can’t perform that action at this time.
0 commit comments