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

Struct HTTPCertPool

modules/caddytls/capools.go:638–647  ·  view source on GitHub ↗

The HTTPCertPool fetches the trusted root certificates from HTTP(S) endpoints. The TLS connection properties can be customized, including custom trusted root certificate. One example usage of this module is to get the trusted certificates from another Caddy instance that is running the PKI app and A

Source from the content-addressed store, hash-verified

636// trusted root certificate. One example usage of this module is to get the trusted
637// certificates from another Caddy instance that is running the PKI app and ACME server.
638type HTTPCertPool struct {
639 // the list of URLs that respond with PEM-encoded certificates to trust.
640 Endpoints []string `json:"endpoints,omitempty"`
641
642 // Customize the TLS connection knobs to used during the HTTP call
643 TLS *TLSConfig `json:"tls,omitempty"`
644
645 pool *x509.CertPool
646 certs []*x509.Certificate
647}
648
649// CaddyModule implements caddy.Module.
650func (HTTPCertPool) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected