signer

package module
v0.0.0-...-ad1cc0c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of the TPM plugin.
	PluginName = "tpm_plugin"
)

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(o Options) (certprovider.Provider, error)

NewProvider returns a new certificate provider plugin that is configured to use TPM based private keys.

Types

type Options

type Options struct {
	// CertFile is the file that holds the identity certificate.
	// Optional. If this is set, KeyFile must also be set.
	CertFile string
	// KeyFile is anything that implements a crypto.Signer
	Signer crypto.Signer
}

Options configures a certificate provider plugin that watches a specified set of files that contain certificates and keys in PEM format.

Jump to

Keyboard shortcuts

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