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

Method RootKey

modules/caddypki/ca.go:195–198  ·  view source on GitHub ↗

RootKey returns the CA's root private key. Since the root key is not cached in memory long-term, it needs to be loaded from storage, which could yield an error.

()

Source from the content-addressed store, hash-verified

193// not cached in memory long-term, it needs to be loaded from storage,
194// which could yield an error.
195func (ca CA) RootKey() (crypto.Signer, error) {
196 _, rootKey, err := ca.loadOrGenRoot()
197 return rootKey, err
198}
199
200// IntermediateCertificateChain returns the CA's intermediate
201// certificate chain.

Callers 1

NewAuthorityMethod · 0.95

Calls 1

loadOrGenRootMethod · 0.95

Tested by

no test coverage detected