aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 2c1c485..49e0270 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -14,9 +14,7 @@ import (
const (
defKeySize = 2048
- day = time.Hour * 24
- week = day * 7
- defGrace = week
+ defGrace = time.Hour * 24 * 7 // one week
keyPath = "private"
crtPath = "certs"
)
@@ -59,7 +57,7 @@ func expandHome(p string) (string, error) {
if strings.HasPrefix(p, "~") {
usr, err := user.Current()
if err != nil {
- return p, err
+ return "", err
}
return path.Join(usr.HomeDir, p[1:]), nil
}