MCPcopy Create free account
hub / github.com/cloudflare/certmgr / ForceUpdate

Method ForceUpdate

cert/spec.go:234–241  ·  view source on GitHub ↗

ForceUpdate forces a refresh of the PKI content

()

Source from the content-addressed store, hash-verified

232
233// ForceUpdate forces a refresh of the PKI content
234func (spec *Spec) ForceUpdate() error {
235 ca, err := spec.getCurrentCA()
236 if err != nil {
237 return err
238 }
239 log.Infof("refresh was forced for %s", spec)
240 return spec.doRefresh(ca)
241}
242
243func (spec *Spec) doRefresh(currentCA *x509.Certificate) error {
244 var keyPair *tls.Certificate

Callers 1

ensureFunction · 0.80

Calls 2

getCurrentCAMethod · 0.95
doRefreshMethod · 0.95

Tested by

no test coverage detected