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

Method CertificateAllowed

modules/caddytls/ondemand.go:72–72  ·  view source on GitHub ↗

CertificateAllowed returns nil if a certificate for the given name is allowed to be either obtained from an issuer or loaded from storage on-demand. The context passed in has the associated *tls.ClientHelloInfo value available at the certmagic.ClientHelloInfoCtxKey key. In the worst case, this fun

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

70 // called when a certificate is needed that is not already loaded
71 // into memory ready to serve.
72 CertificateAllowed(ctx context.Context, name string) error
73}
74
75// PermissionByHTTP determines permission for a TLS certificate by

Callers 1

makeCertMagicConfigMethod · 0.65

Implementers 1

PermissionByHTTPmodules/caddytls/ondemand.go

Calls

no outgoing calls

Tested by

no test coverage detected