MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / TLSSelfSignedConfig

Struct TLSSelfSignedConfig

pkg/httpsrv/tls_self_signed.go:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65var _ TLSer = (*TLSSelfSignedConfig)(nil)
66
67type TLSSelfSignedConfig struct {
68 cacheDir string
69 certFile string
70 keyFile string
71 expirationDays int
72 wanIPs []string // IP addresses to include in the certificate.
73}
74
75func NewTLSSelfSignedConfig(opts ...TLSSelfSignedOption) *TLSSelfSignedConfig {
76 o := defaultTLSSelfSignedOptions()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected