aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-10 01:50:59 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-10 01:50:59 +0100
commit2728957a55fccf1069db23aa9f6dbab621a255ae (patch)
tree88523b8cf775ca4aba0a2faa99b3daf61c13b88d /cmd
parent750ff49897b96edf5e4460ac30d7c1da87eaf4d7 (diff)
Extract altnames from desire
Diffstat (limited to 'cmd')
-rw-r--r--cmd/acme/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/acme/main.go b/cmd/acme/main.go
index 79bf0c2..83d754c 100644
--- a/cmd/acme/main.go
+++ b/cmd/acme/main.go
@@ -84,7 +84,7 @@ func requestCert(prov *acme.Provider, acc *acme.Account, d domain) error {
}
}
- des := acme.NewDesire(c.PrivateKey, d.Altnames)
+ des := acme.NewDesire(c.PrivateKey)
if d.Webroot != "" {
des.RegisterSolver(acme.NewWebrootSolver(d.Webroot))
} else {
@@ -100,7 +100,7 @@ func requestCert(prov *acme.Provider, acc *acme.Account, d domain) error {
}
log.Println("Request bundle for", d.Altnames)
- cert, err := prov.Bundle(acc, des)
+ cert, err := prov.Bundle(acc, des, d.Altnames)
if err != nil {
return err
}