MCPcopy
hub / github.com/caddyserver/certmagic / GetRenewalInfo

Method GetRenewalInfo

acmeclient.go:285–291  ·  view source on GitHub ↗

GetRenewalInfo gets the ACME Renewal Information (ARI) for the certificate.

(ctx context.Context, cert Certificate)

Source from the content-addressed store, hash-verified

283
284// GetRenewalInfo gets the ACME Renewal Information (ARI) for the certificate.
285func (iss *ACMEIssuer) GetRenewalInfo(ctx context.Context, cert Certificate) (acme.RenewalInfo, error) {
286 acmeClient, err := iss.newBasicACMEClient()
287 if err != nil {
288 return acme.RenewalInfo{}, err
289 }
290 return acmeClient.GetRenewalInfo(ctx, cert.Certificate.Leaf)
291}
292
293func (iss *ACMEIssuer) getHTTPPort() int {
294 useHTTPPort := HTTPChallengePort

Callers

nothing calls this directly

Calls 2

newBasicACMEClientMethod · 0.95
GetRenewalInfoMethod · 0.65

Tested by

no test coverage detected