mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-15 08:07:07 +10:00
Agree to terms of service when registering acme account
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user