certs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAMTClientTemplate

func GetAMTClientTemplate() x509.Certificate

func GetIntermediateCATemplate

func GetIntermediateCATemplate() x509.Certificate

func GetLeafTemplate

func GetLeafTemplate() x509.Certificate

func GetRootCATemplate

func GetRootCATemplate() x509.Certificate

func ParseAMTPublicKey

func ParseAMTPublicKey(derKey string) (any, error)

Types

type Composite

type Composite struct {
	Cert        *x509.Certificate
	Pem         string
	Fingerprint string
	// contains filtered or unexported fields
}

func NewRootComposite

func NewRootComposite() (Composite, error)

func NewSignedAMTComposite

func NewSignedAMTComposite(derKey string, parent *Composite) (Composite, error)

func (*Composite) GenerateCert

func (c *Composite) GenerateCert(template, parent *x509.Certificate, pub, priv any) error

func (*Composite) StripPem

func (c *Composite) StripPem() string

type CompositeChain

type CompositeChain struct {
	Root         Composite
	Intermediate Composite
	Leaf         Composite
	PfxData      []byte
	Pfxb64       string
	PfxPassword  string
}

func NewCompositeChain

func NewCompositeChain(password string) (CompositeChain, error)

Jump to

Keyboard shortcuts

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