From 94083744eea0ca47952aeac4e2277931ab150d36 Mon Sep 17 00:00:00 2001 From: xenolf Date: Tue, 17 Apr 2018 00:58:53 +0200 Subject: [PATCH] Fix error return when Order could not be created --- acmev2/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acmev2/client.go b/acmev2/client.go index fc2777d0..55407303 100644 --- a/acmev2/client.go +++ b/acmev2/client.go @@ -348,8 +348,8 @@ func (c *Client) ObtainCertificate(domains []string, bundle bool, privKey crypto order, err := c.createOrderForIdentifiers(domains) if err != nil { identErrors := make(map[string]error) - for _, auth := range order.Identifiers { - identErrors[auth.Value] = err + for _, domain := range domains { + identErrors[domain] = err } return CertificateResource{}, identErrors }