intermediateca

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OIDExtensionCTPoison is defined in RFC 6962 s3.1.
	OIDExtensionCTPoison = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 3}
	// OIDExtensionCTSCT is defined in RFC 6962 s3.3.
	OIDExtensionCTSCT = asn1.ObjectIdentifier{1, 3, 6, 1, 4, 1, 11129, 2, 4, 2}
)

Functions

func VerifyCertChain

func VerifyCertChain(certs []*x509.Certificate, signer crypto.Signer) error

Types

type IntermediateCA

type IntermediateCA struct {
	sync.RWMutex

	// certs is a chain of certificates from intermediate to root
	Certs  []*x509.Certificate
	Signer crypto.Signer
}

func (*IntermediateCA) CreateCertificate

func (ica *IntermediateCA) CreateCertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningCertificate, error)

func (*IntermediateCA) CreatePrecertificate

func (ica *IntermediateCA) CreatePrecertificate(ctx context.Context, challenge *challenges.ChallengeResult) (*ca.CodeSigningPreCertificate, error)

func (*IntermediateCA) IssueFinalCertificate

func (*IntermediateCA) Root

func (ica *IntermediateCA) Root(ctx context.Context) ([]byte, error)

Jump to

Keyboard shortcuts

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