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

Struct LeafPEMLoader

modules/caddytls/leafpemloader.go:32–34  ·  view source on GitHub ↗

LeafPEMLoader loads leaf certificates by decoding their PEM blocks directly. This has the advantage of not needing to store them on disk at all.

Source from the content-addressed store, hash-verified

30// decoding their PEM blocks directly. This has the advantage
31// of not needing to store them on disk at all.
32type LeafPEMLoader struct {
33 Certificates []string `json:"certificates,omitempty"`
34}
35
36// Provision implements caddy.Provisioner.
37func (pl *LeafPEMLoader) Provision(ctx caddy.Context) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected