tls

package
v0.0.0-...-5971e6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL