aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-15 09:19:02 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-15 09:19:02 +0100
commitd75d302ca16667dc518390ebb13741a8f5dfd803 (patch)
tree48c6403530cb0dec20b1e121e8b27c41b25a46c8 /cmd
parent1d338e266441d64963d9ff93d343074f4d87bb15 (diff)
Fallback account key file
Diffstat (limited to 'cmd')
-rw-r--r--cmd/acme/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 693f827..20416bb 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -100,7 +100,7 @@ func LoadConfig(fname string) (*Config, error) {
return nil, errNoMail
}
if acc.KeyFile == "" {
- return nil, errNoKey
+ acc.KeyFile = path.Join(keyPath, acc.Mail+".key")
}
if c.BaseDir != "" {
acc.KeyFile = path.Join(c.BaseDir, acc.KeyFile)