aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)