cert

package
v0.1.984 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackbox

type Blackbox interface {
	contract.CertGenerator
}

type Client

type Client interface {
	Blackbox
}

func NewClient

func NewClient() Client

type DefaultTool added in v0.1.11

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) AppendCertsFromPEM added in v0.1.11

func (d *DefaultTool) AppendCertsFromPEM(ctx context.Context, pool *x509.CertPool, pemCerts []byte) (bool, error)

AppendCertsFromPEM appends certificates from a PEM-encoded block to an x509.CertPool.

func (*DefaultTool) X509KeyPair added in v0.1.11

func (d *DefaultTool) X509KeyPair(ctx context.Context, certPEMBlock, keyPEMBlock []byte) (tls.Certificate, error)

X509KeyPair loads an X.509 key pair from PEM-encoded data.

type Tool added in v0.1.245

type Tool interface {
	Client
}

Jump to

Keyboard shortcuts

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