extension

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSignerInfoLoading = errors.New("unable to read Signer info")
	ErrCSRCreate         = errors.New("unable to create CSR")
	ErrPKIOperation      = errors.New("unable to perform PKI operation")
	ErrCSRRequestCreate  = errors.New("unable to create CSR request")
	ErrGetRemoteCA       = errors.New("error getting remote CA certificate")
	ErrRemoteConnection  = errors.New("error connecting to remote server")
	ErrConsulConnection  = errors.New("error connecting to Service Discovery server")
)

Functions

func NewClient

func NewClient(proxyAddress string, consulProtocol string, consulHost string, consulPort string, consulCA string, proxyCA string, logger log.Logger, otTracer stdopentracing.Tracer) client.Client

Types

type CSROptions

type CSROptions struct {
	// contains filtered or unexported fields
}

type SCEPExt

type SCEPExt struct {
	// contains filtered or unexported fields
}

func (*SCEPExt) GetCertificate

func (s *SCEPExt) GetCertificate(ctx context.Context, keyAlg string, keySize int, c string, st string, l string, o string, ou string, cn string, email string) (*x509.Certificate, crypto.PrivateKey, error)

func (*SCEPExt) StartClient

func (s *SCEPExt) StartClient(ctx context.Context, CA string, authCRT []tls.Certificate) error

Jump to

Keyboard shortcuts

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