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

Struct CombinedCAPool

modules/caddytls/capools.go:830–837  ·  view source on GitHub ↗

The `combined` pool type merges multiple pools. The `sources` pools must implement the `CertificateProvider` interface, which allows them to export their certificate set. Note: SystemCAPool does not implement CertificateProvider because x509.SystemCertPool() doesn't expose its certificates, so it c

Source from the content-addressed store, hash-verified

828// x509.SystemCertPool() doesn't expose its certificates, so it cannot
829// be used as a source in CombinedCAPool.
830type CombinedCAPool struct {
831 // The CA pool sources to combine. Each source is a CA pool provider module.
832 SourcesRaw []json.RawMessage `json:"sources,omitempty" caddy:"namespace=tls.ca_pool.source inline_key=provider"`
833
834 sources []CA
835 pool *x509.CertPool
836 certs []*x509.Certificate
837}
838
839// CaddyModule implements caddy.Module.
840func (CombinedCAPool) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected