diff --git a/acme/acme.go b/acme/acme.go index 3e39bd12d..521890ffa 100644 --- a/acme/acme.go +++ b/acme/acme.go @@ -279,6 +279,20 @@ func (a *ACME) CreateConfig(tlsConfig *tls.Config, CheckOnDemandDomain func(doma // The client has a URL to the current Let's Encrypt Subscriber // Agreement. The user will need to agree to it. err = a.client.AgreeToTOS() + if err != nil { + // Let's Encrypt Subscriber Agreement renew ? + reg, err := client.QueryRegistration() + if err != nil { + return err + } + account.Registration = reg + err = client.AgreeToTOS() + if err != nil { + log.Errorf("Error sending ACME agreement to TOS: %+v: %s", account, err.Error()) + } + } + // save account + err = a.saveAccount(account) if err != nil { return err }