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

Struct PKI

modules/caddypki/pki.go:35–45  ·  view source on GitHub ↗

PKI provides Public Key Infrastructure facilities for Caddy. This app can define certificate authorities (CAs) which are capable of signing certificates. Other modules can be configured to use the CAs defined by this app for issuing certificates or getting key information needed for establishing tr

Source from the content-addressed store, hash-verified

33// the CAs defined by this app for issuing certificates or getting
34// key information needed for establishing trust.
35type PKI struct {
36 // The certificate authorities to manage. Each CA is keyed by an
37 // ID that is used to uniquely identify it from other CAs.
38 // At runtime, the GetCA() method should be used instead to ensure
39 // the default CA is provisioned if it hadn't already been.
40 // The default CA ID is "local".
41 CAs map[string]*CA `json:"certificate_authorities,omitempty"`
42
43 ctx caddy.Context
44 log *zap.Logger
45}
46
47// CaddyModule returns the Caddy module information.
48func (PKI) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected