Documentation
¶
Index ¶
- type CertManager
- func (cm *CertManager) CertificatesExist() bool
- func (cm *CertManager) GenerateSelfSignedCert(hosts string, validDays int) error
- func (cm *CertManager) GetCertificateInfo() (map[string]interface{}, error)
- func (cm *CertManager) LoadTLSConfig() (*tls.Config, error)
- func (cm *CertManager) ValidateCertificates() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
CertManager handles TLS certificate operations
func NewCertManager ¶
func NewCertManager(certPath, keyPath string, logger *logrus.Logger) *CertManager
NewCertManager creates a new certificate manager
func (*CertManager) CertificatesExist ¶
func (cm *CertManager) CertificatesExist() bool
CertificatesExist checks if both certificate and key files exist
func (*CertManager) GenerateSelfSignedCert ¶
func (cm *CertManager) GenerateSelfSignedCert(hosts string, validDays int) error
GenerateSelfSignedCert generates a self-signed certificate
func (*CertManager) GetCertificateInfo ¶
func (cm *CertManager) GetCertificateInfo() (map[string]interface{}, error)
GetCertificateInfo returns information about the certificate
func (*CertManager) LoadTLSConfig ¶
func (cm *CertManager) LoadTLSConfig() (*tls.Config, error)
LoadTLSConfig loads TLS configuration with security hardening
func (*CertManager) ValidateCertificates ¶
func (cm *CertManager) ValidateCertificates() error
ValidateCertificates validates existing certificates
Click to show internal directories.
Click to hide internal directories.