fulcio

package
v0.10.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	PrivateKey crypto.PrivateKey
	CertPEM    []byte
	ChainPEM   []byte
}

func NewIdentity

func NewIdentity(ctx context.Context, cfg *config.Config, in io.Reader, out io.Writer) (*Identity, error)

func (*Identity) CacheCert added in v0.5.0

func (i *Identity) CacheCert(ctx context.Context, cacheClient *cache.Client) error

func (*Identity) Certificate

func (i *Identity) Certificate() (*x509.Certificate, error)

Certificate gets the identity's certificate.

func (*Identity) CertificateChain

func (i *Identity) CertificateChain() ([]*x509.Certificate, error)

CertificateChain attempts to get the identity's full certificate chain.

func (*Identity) Close

func (i *Identity) Close()

Close any manually managed memory held by the Identity.

func (*Identity) Delete

func (i *Identity) Delete() error

Delete deletes this identity from the system.

func (*Identity) PublicKey

func (i *Identity) PublicKey() (crypto.PublicKey, error)

func (*Identity) Signer

func (i *Identity) Signer() (crypto.Signer, error)

Signer gets a crypto.Signer that uses the identity's private key.

func (*Identity) SignerVerifier

func (i *Identity) SignerVerifier() (*signerverifier.CertSignerVerifier, error)

type IdentityFactory added in v0.5.0

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

IdentityFactory holds reusable values for configuring how identities are created. Values set here are not expected to change per-request.

func NewIdentityFactory added in v0.5.0

func NewIdentityFactory(in io.Reader, out io.Writer) *IdentityFactory

func (*IdentityFactory) NewIdentity added in v0.5.0

func (f *IdentityFactory) NewIdentity(ctx context.Context, cfg *config.Config) (*Identity, error)

type PrivateKey added in v0.5.0

type PrivateKey interface {
	crypto.PrivateKey
	Public() crypto.PublicKey
}

PrivateKey defines the crypto.PrivateKey interface. This should be true for all PrivateKeys.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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