certificate

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 v1alpha1.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