pass down acme config

This commit is contained in:
crapStone 2023-11-17 23:23:24 +01:00
parent 6e797b8115
commit 7401846261
No known key found for this signature in database
GPG key ID: D74B82E7CDD863FE
3 changed files with 21 additions and 30 deletions

View file

@ -22,16 +22,5 @@ func CreateAcmeClient(cfg config.ACMEConfig, enableHTTPServer bool, challengeCac
return nil, fmt.Errorf("%w: ACME_EAB_KID also needs ACME_EAB_HMAC to be set", ErrAcmeMissConfig)
}
return certificates.NewAcmeClient(
cfg.AccountConfigFile,
cfg.APIEndpoint,
cfg.Email,
cfg.EAB_HMAC,
cfg.EAB_KID,
cfg.DNSProvider,
cfg.AcceptTerms,
enableHTTPServer,
cfg.UseRateLimits,
challengeCache,
)
return certificates.NewAcmeClient(cfg, enableHTTPServer, challengeCache)
}