Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTLSCertExpiresSoon = fmt.Errorf("TLS certificate will expire soon")
Functions ¶
func GetConfigFromPEMKeyPair ¶ added in v2.4.3
GetConfigFromPEMKeyPair load a TLS config from PEM encoded certificate and key.
func NewPEMKeyPair ¶ added in v2.4.3
NewPEMKeyPair return a new TLS private key and certificate in PEM encoded format.
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.