reg

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificateFromCSR

func GenerateCertificateFromCSR(crt, key, csr []byte) (signed *x509.Certificate, err error)

GenerateCertificateFromCSR creates a signed certificate using the provided certificate, key, and CSR.

Types

type Registrator

type Registrator struct {
	Data *userdata.OSSecurity
}

Registrator is the concrete type that implements the factory.Registrator and proto.ROTDServer interfaces.

func (*Registrator) Certificate

func (r *Registrator) Certificate(ctx context.Context, in *proto.CertificateRequest) (resp *proto.CertificateResponse, err error)

Certificate implements the proto.ROTDServer interface.

func (*Registrator) Register

func (r *Registrator) Register(s *grpc.Server)

Register implements the factory.Registrator interface.

Jump to

Keyboard shortcuts

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