ca

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MPL-2.0 Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CAImpl

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

func New

func New(log *log.Logger, db *db.MemoryStore, ocspResponderURL string, alternateRoots int, chainLength int, certificateValidityPeriod uint64) *CAImpl

func (*CAImpl) CompleteOrder

func (ca *CAImpl) CompleteOrder(order *core.Order)

func (*CAImpl) GetIntermediateCert

func (ca *CAImpl) GetIntermediateCert(no int) *core.Certificate

GetIntermediateCert returns the first (closest the leaf) issuer certificate in the chain identified by `no`.

func (*CAImpl) GetIntermediateKey

func (ca *CAImpl) GetIntermediateKey(no int) *rsa.PrivateKey

func (*CAImpl) GetNumberOfRootCerts

func (ca *CAImpl) GetNumberOfRootCerts() int

func (*CAImpl) GetRootCert

func (ca *CAImpl) GetRootCert(no int) *core.Certificate

func (*CAImpl) GetRootKey

func (ca *CAImpl) GetRootKey(no int) *rsa.PrivateKey

func (*CAImpl) RecognizedSKID added in v2.6.0

func (ca *CAImpl) RecognizedSKID(issuer []byte) error

RecognizedSKID attempts to match the incoming Authority Key Idenfitier (AKID) bytes to the Subject Key Identifier (SKID) of an intermediate certificate. It returns an error if no match is found.

Jump to

Keyboard shortcuts

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