selfsigned

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(caKey crypto.PrivateKey, caChain []*x509.Certificate, vcekCache,
	ekDbPath string, verifyEkCert bool,
) (*Client, error)

func (*Client) CaCerts

func (c *Client) CaCerts() ([]*x509.Certificate, error)

func (*Client) CcEnroll

func (c *Client) CcEnroll(
	csr *x509.CertificateRequest,
	report []byte,
	metadata [][]byte,
) (*x509.Certificate, error)

func (*Client) GetSnpCa

func (c *Client) GetSnpCa(codeName string, akType internal.AkType) ([]*x509.Certificate, error)

func (*Client) GetSnpVcek

func (c *Client) GetSnpVcek(codeName string, chipId [64]byte, tcb uint64) (*x509.Certificate, error)

func (*Client) SimpleEnroll

func (c *Client) SimpleEnroll(csr *x509.CertificateRequest) (*x509.Certificate, error)

func (*Client) TpmActivateEnroll

func (c *Client) TpmActivateEnroll(
	tpmManufacturer, ekCertUrl string,
	tpmMajor, tpmMinor int,
	csr *x509.CertificateRequest,
	akParams attest.AttestationParameters,
	ekPublic, ekCertDer []byte,
) ([]byte, []byte, []byte, error)

func (*Client) TpmCertifyEnroll

func (c *Client) TpmCertifyEnroll(
	csr *x509.CertificateRequest,
	ikParams attest.CertificationParameters,
	akPublic []byte,
	report []byte,
	metadata [][]byte,
) (*x509.Certificate, error)

Jump to

Keyboard shortcuts

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