ca

package
v0.0.0-...-c15af0d Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceEstService

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

func NewEstService

func NewEstService(devicesDb devicesStore.DB, caClient *http.Client, caUrl string, keycloakClient *http.Client, keycloakUrl string, keycloakClientId string, keycloakClientSecret string, minReenrollDays int, logger log.Logger) *DeviceEstService

func (*DeviceEstService) CACerts

func (ca *DeviceEstService) CACerts(ctx context.Context, aps string, req *http.Request) ([]*x509.Certificate, error)

func (*DeviceEstService) CSRAttrs

func (ca *DeviceEstService) CSRAttrs(ctx context.Context, aps string, r *http.Request) (est.CSRAttrs, error)

func (*DeviceEstService) Enroll

func (*DeviceEstService) Reenroll

func (*DeviceEstService) ServerKeyGen

func (ca *DeviceEstService) ServerKeyGen(ctx context.Context, csr *x509.CertificateRequest, aps string, r *http.Request) (*x509.Certificate, []byte, error)

func (*DeviceEstService) TPMEnroll

func (ca *DeviceEstService) TPMEnroll(ctx context.Context, csr *x509.CertificateRequest, ekcerts []*x509.Certificate, ekPub, akPub []byte, aps string, r *http.Request) ([]byte, []byte, []byte, error)

Jump to

Keyboard shortcuts

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