Skip to content

Commit

Permalink
Merge pull request #582 from containous/fix-acme-tos
Browse files Browse the repository at this point in the history
Fix ACME TOS
  • Loading branch information
emilevauge committed Aug 2, 2016
2 parents 2c41176 + b466413 commit 5306981
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,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 = 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
}
Expand Down

0 comments on commit 5306981

Please sign in to comment.