cert

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertsExist

func CertsExist(certFile, keyFile, caFile string) bool

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

Jump to

Keyboard shortcuts

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