diff --git a/acme/client.go b/acme/client.go index bc641144..5bda6bc2 100644 --- a/acme/client.go +++ b/acme/client.go @@ -504,6 +504,7 @@ func (c *Client) requestCertificate(authz []authorizationResource, bundle bool, if len(cert) > 0 { cerRes.CertStableURL = resp.Header.Get("Content-Location") + cerRes.AccountRef = c.user.GetRegistration().URI issuedCert := pemEncode(derCertificateBytes(cert)) // If bundle is true, we want to return a certificate bundle. diff --git a/acme/messages.go b/acme/messages.go index d238df81..fe3f5748 100644 --- a/acme/messages.go +++ b/acme/messages.go @@ -109,6 +109,7 @@ type CertificateResource struct { Domain string `json:"domain"` CertURL string `json:"certUrl"` CertStableURL string `json:"certStableUrl"` + AccountRef string `json:"accountRef,omitempty"` PrivateKey []byte `json:"-"` Certificate []byte `json:"-"` }