Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertManager ¶
CertManager defines the interface for managing TLS configuration
type SelfSignedCertManager ¶
type SelfSignedCertManager struct { Host string CertDir string CertPath string KeyPath string // contains filtered or unexported fields }
SelfSignedCertManager handles self-signed certificate generation
func NewSelfSignedCertManager ¶
func NewSelfSignedCertManager(host, certDir string) *SelfSignedCertManager
NewSelfSignedCertManager creates a new manager for self-signed certificates
func (*SelfSignedCertManager) GetCertHash ¶
func (cm *SelfSignedCertManager) GetCertHash() ([]byte, error)
func (*SelfSignedCertManager) GetCertificate ¶
func (cm *SelfSignedCertManager) GetCertificate() (*tls.Certificate, error)
GetCertificate loads or generates a self-signed certificate
func (*SelfSignedCertManager) GetTLSConfig ¶
func (cm *SelfSignedCertManager) GetTLSConfig() (*tls.Config, error)
GetTLSConfig generates or loads a self-signed certificate and returns a tls.Config
Click to show internal directories.
Click to hide internal directories.