servicers

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NumTrialsForSn      int
	CollectGarbageAfter time.Duration // remove cert if expired for certain amount of time
)

Functions

This section is empty.

Types

type CAInfo

type CAInfo struct {
	Cert    *x509.Certificate
	PrivKey interface{}
}

type CertifierServer

type CertifierServer struct {
	CAs map[protos.CertType]*CAInfo
	// contains filtered or unexported fields
}

func NewCertifierServer

func NewCertifierServer(store storage.CertifierStorage, CAs map[protos.CertType]*CAInfo) (srv *CertifierServer, err error)

func (*CertifierServer) AddCertificate

func (srv *CertifierServer) AddCertificate(ctx context.Context, req *certprotos.AddCertRequest) (*protos.Void, error)

func (*CertifierServer) CollectGarbage

func (srv *CertifierServer) CollectGarbage(ctx context.Context, void *protos.Void) (*protos.Void, error)

func (*CertifierServer) CollectGarbageImpl

func (srv *CertifierServer) CollectGarbageImpl(ctx context.Context) (int, error)

func (*CertifierServer) FindCertificates

func (srv *CertifierServer) FindCertificates(ctx context.Context, id *protos.Identity) (*certprotos.SerialNumbers, error)

Finds & returns Serial Numbers of all Certificates associated with the given Identity

func (*CertifierServer) GetAll

GetAll returns all Certificates Records

func (*CertifierServer) GetCA

func (srv *CertifierServer) GetCA(ctx context.Context, getCAReqMsg *certprotos.GetCARequest) (*protos.CACert, error)

func (*CertifierServer) GetIdentity

func (*CertifierServer) ListCertificates

func (srv *CertifierServer) ListCertificates(ctx context.Context, void *protos.Void) (*certprotos.SerialNumbers, error)

Returns serial numbers of all certificates in the table

func (*CertifierServer) RevokeCertificate

func (srv *CertifierServer) RevokeCertificate(
	ctx context.Context, snMsg *protos.Certificate_SN) (*protos.Void, error)

func (*CertifierServer) SignAddCertificate

func (srv *CertifierServer) SignAddCertificate(ctx context.Context, csrMsg *protos.CSR) (*protos.Certificate, error)

Jump to

Keyboard shortcuts

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