aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-17 13:09:32 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-17 13:09:32 +0100
commite77df0e124eab3b5ee17f1b07be6ac7d7b36bd52 (patch)
tree492a0dd6e2ed822ac029e626cf264f4051e4815b /cmd/acme/config.go
parente5040c3b06aea9d2a02e12b8b1ae6b3f159d11a6 (diff)
KISS
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
}