Agree to terms of service when registering acme account

This commit is contained in:
James Munnelly
2018-03-23 18:50:45 +00:00
parent e390021709
commit 599fa90f57
+2 -1
View File
@@ -78,7 +78,8 @@ func (a *Acme) Setup(ctx context.Context) error {
// it will return the
func (a *Acme) registerAccount(ctx context.Context, cl *acme.Client) (*acme.Account, error) {
acc := &acme.Account{
Contact: []string{fmt.Sprintf("mailto:%s", strings.ToLower(a.issuer.GetSpec().ACME.Email))},
Contact: []string{fmt.Sprintf("mailto:%s", strings.ToLower(a.issuer.GetSpec().ACME.Email))},
TermsAgreed: true,
}
acc, err := cl.CreateAccount(ctx, acc)
if err != nil {