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

Method getCurrentCA

cert/spec.go:263–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261}
262
263func (spec *Spec) getCurrentCA() (*x509.Certificate, error) {
264 ca, err := spec.Authority.getRemoteCert()
265 err = errors.WithMessagef(err, "requested CA for spec %s", spec)
266 if err != nil {
267 SpecRequestFailureCount.WithLabelValues(spec.Name).Inc()
268 }
269 return ca, err
270}
271
272func (spec *Spec) writePKIToStorage(ca *x509.Certificate, keyPair *tls.Certificate) error {
273 SpecWriteCount.WithLabelValues(spec.Name).Inc()

Callers 2

UpdateIfNeededMethod · 0.95
ForceUpdateMethod · 0.95

Calls 1

getRemoteCertMethod · 0.80

Tested by

no test coverage detected