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
| 33 | // the CAs defined by this app for issuing certificates or getting |
| 34 | // key information needed for establishing trust. |
| 35 | type 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. |
| 48 | func (PKI) CaddyModule() caddy.ModuleInfo { |
nothing calls this directly
no outgoing calls
no test coverage detected