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, 5 insertions, 1 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 3e3cf40..9b15088 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -105,7 +105,7 @@ func LoadConfig(fname string) (*Config, error) {
des.KeyFile = path.Join(c.BaseDir, keyPath, des.KeyFile)
c.Desire[i] = des
for i, dom := range des.Domain {
- if dom.Gracetime != 0 {
+ if dom.Gracetime == 0 {
dom.Gracetime = c.Gracetime
}
if dom.KeySize == 0 {
@@ -155,3 +155,7 @@ func checkWWW(altnames []string) []string {
}
return altnames
}
+
+func (c Config) dump() ([]byte, error) {
+ return yaml.Marshal(c)
+}