certificate

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCertPoolUseCA added in v0.4.1

func GenCertPoolUseCA(caFile string) (*x509.CertPool, error)

GenCertPoolUseCA generates a x509 CertPool based on the given CA file

func GenTLSConfigUseCertMgrAndCertPool added in v0.4.1

func GenTLSConfigUseCertMgrAndCertPool(
	m certificate.Manager,
	root *x509.CertPool) (*tls.Config, error)

GenTGenTLSConfigUseCertMgrAndCertPool generates a TLS configuration using the given certificate manager and x509 CertPool

Types

type CertificateManagerRegistry

type CertificateManagerRegistry struct {
	sync.Mutex
	// contains filtered or unexported fields
}

CertificateManagerRegistry is a object for holding all of certificate managers

func NewCertificateManagerRegistry

func NewCertificateManagerRegistry() *CertificateManagerRegistry

NewCertificateManagerRegistry creates an *CertificateManagerRegistry object

func (*CertificateManagerRegistry) New

New creates a YurtCertificateManager with specified name of registered certificate manager

func (*CertificateManagerRegistry) Register

func (cmr *CertificateManagerRegistry) Register(name string, cm Factory)

Register register a Factory func for creating certificate manager

type Factory

Factory is a function that returns an YurtCertificateManager. The cfg parameter provides the common info for certificate manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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