MCPcopy
hub / github.com/caddyserver/caddy / RootCertificate

Method RootCertificate

modules/caddypki/ca.go:186–190  ·  view source on GitHub ↗

RootCertificate returns the CA's root certificate (public key).

()

Source from the content-addressed store, hash-verified

184
185// RootCertificate returns the CA's root certificate (public key).
186func (ca CA) RootCertificate() *x509.Certificate {
187 ca.mu.RLock()
188 defer ca.mu.RUnlock()
189 return ca.root
190}
191
192// RootKey returns the CA's root private key. Since the root key is
193// not cached in memory long-term, it needs to be loaded from storage,

Callers 4

NewAuthorityMethod · 0.95
rootAndIntermediatePEMFunction · 0.80
ProvisionMethod · 0.80
IssueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected