aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go4
-rw-r--r--cmd/acme/main.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/client.go b/client.go
index ec5022b..6b356fe 100644
--- a/client.go
+++ b/client.go
@@ -212,10 +212,10 @@ func pickChallenge(c []Challenge) (int, Challenge) {
return -1, Challenge{}
}
-func (c *Client) Authorize(s ThumbSigner, altnames []string) error {
+func (c *Client) Authorize(s ThumbSigner, domain string) error {
ident := Identifier{
Type: IdentDNS,
- Value: altnames[0],
+ Value: domain,
}
r := &Authorization{
Resource: ResNewAuthz,
diff --git a/cmd/acme/main.go b/cmd/acme/main.go
index ab85637..2124666 100644
--- a/cmd/acme/main.go
+++ b/cmd/acme/main.go
@@ -103,7 +103,7 @@ func main() {
log.Fatal("register", err)
}
- err = c.Authorize(a, des.Altnames)
+ err = c.Authorize(a, des.Altnames[0])
if err != nil {
log.Fatal("authz", err)
}