Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertsExist ¶
CertsExist checks if certificate files exist
Types ¶
type CertificateInfo ¶
type CertificateInfo struct {
CAFingerprint string
CertFingerprint string
ValidFrom time.Time
ValidUntil time.Time
Subject string
}
CertificateInfo holds information about generated certificates
func GenerateSelfSignedCerts ¶
func GenerateSelfSignedCerts(outputDir, hostname string) (*CertificateInfo, error)
GenerateSelfSignedCerts generates a self-signed CA and agent certificate This is used for bootstrap mode when agent runs autonomously
Click to show internal directories.
Click to hide internal directories.