Merge acme from v1.0.2

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-09-19 19:58:34 +02:00
parent aa1c9b80e3
commit efe6989fd3
No known key found for this signature in database
GPG key ID: D808B4C167352E59

View file

@ -281,18 +281,18 @@ func (a *ACME) CreateConfig(tlsConfig *tls.Config, CheckOnDemandDomain func(doma
err = a.client.AgreeToTOS() err = a.client.AgreeToTOS()
if err != nil { if err != nil {
// Let's Encrypt Subscriber Agreement renew ? // Let's Encrypt Subscriber Agreement renew ?
reg, err := client.QueryRegistration() reg, err := a.client.QueryRegistration()
if err != nil { if err != nil {
return err return err
} }
account.Registration = reg a.account.Registration = reg
err = client.AgreeToTOS() err = a.client.AgreeToTOS()
if err != nil { if err != nil {
log.Errorf("Error sending ACME agreement to TOS: %+v: %s", account, err.Error()) log.Errorf("Error sending ACME agreement to TOS: %+v: %s", a.account, err.Error())
} }
} }
// save account // save account
err = a.saveAccount(account) err = a.saveAccount()
if err != nil { if err != nil {
return err return err
} }