Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTLSCertExpiresSoon = fmt.Errorf("TLS certificate will expire soon")
Functions ¶
func NewTLSTemplate ¶
func NewTLSTemplate() (*x509.Certificate, error)
NewTLSTemplate creates a new TLS template certificate with a random serial number.
Types ¶
type TLS ¶
type TLS struct {
// contains filtered or unexported fields
}
func (*TLS) GenerateCerts ¶
func (t *TLS) GenerateCerts(template *x509.Certificate) error
GenerateCerts generates certs from the given template.
func (*TLS) GetConfig ¶
GetConfig tries to load TLS config or generate new one which is then returned.
func (*TLS) InstallCerts ¶
func (*TLS) UninstallCerts ¶
Click to show internal directories.
Click to hide internal directories.