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

Struct HTTPCertGetter

modules/caddytls/certmanagers.go:90–111  ·  view source on GitHub ↗

HTTPCertGetter can get a certificate via HTTP(S) request.

Source from the content-addressed store, hash-verified

88
89// HTTPCertGetter can get a certificate via HTTP(S) request.
90type HTTPCertGetter struct {
91 // The URL from which to download the certificate. Required.
92 //
93 // The URL will be augmented with query string parameters taken
94 // from the TLS handshake:
95 //
96 // - server_name: The SNI value
97 // - signature_schemes: Comma-separated list of hex IDs of signatures
98 // - cipher_suites: Comma-separated list of hex IDs of cipher suites
99 //
100 // To be valid, the response must be HTTP 200 with a PEM body
101 // consisting of blocks for the certificate chain and the private
102 // key.
103 //
104 // To indicate that this manager is not managing a certificate for
105 // the described handshake, the endpoint should return HTTP 204
106 // (No Content). Error statuses will indicate that the manager is
107 // capable of providing a certificate but was unable to.
108 URL string `json:"url,omitempty"`
109
110 ctx context.Context
111}
112
113// CaddyModule returns the Caddy module information.
114func (hcg HTTPCertGetter) CaddyModule() caddy.ModuleInfo {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected