certificate

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CleanupTokenChan = make(chan struct{}, 1)

Functions

func GetCACert

func GetCACert(url string) ([]byte, error)

GetCACert gets the cloudcore CA certificate

func ValidateCACerts

func ValidateCACerts(cacerts []byte, hash string) (bool, string, string)

ValidateCACerts validates the CA certificate by hash code

Types

type CertManager

type CertManager struct {
	RotateCertificates bool
	NodeName           string
	CR                 *x509.CertificateRequest

	Done chan struct{}
	// contains filtered or unexported fields
}

func NewCertManager

func NewCertManager(edgehub v1alpha2.EdgeHub, nodename string) CertManager

NewCertManager creates a CertManager for edge certificate management according to EdgeHub config

func (*CertManager) GetEdgeCert

func (cm *CertManager) GetEdgeCert(url string, capem []byte, cert tls.Certificate, token string) (*ecdsa.PrivateKey, []byte, error)

GetEdgeCert applies for the certificate from cloudcore

func (*CertManager) Start

func (cm *CertManager) Start()

Start starts the CertManager

Jump to

Keyboard shortcuts

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