ca

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 22 Imported by: 5

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, keyAlg string, alternateRoots int, chainLength int, profiles map[string]Profile) *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) GetProfiles added in v2.7.0

func (ca *CAImpl) GetProfiles() map[string]string

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.

type Profile added in v2.7.0

type Profile struct {
	Description       string
	PromoteCommonName bool
	ValidityPeriod    uint64
}

Jump to

Keyboard shortcuts

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