fulcio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlowNormal = "normal"
	FlowDevice = "device"
)

Variables

Functions

func GetCert

func GetCert(ctx context.Context, priv *ecdsa.PrivateKey, flow string) (string, string, error)

GetCert returns the PEM-encoded signature of the OIDC identity returned as part of an interactive oauth2 flow plus the PEM-encoded cert chain.

Types

type Signer added in v0.3.0

type Signer struct {
	Cert  string
	Chain string

	signature.ECDSASignerVerifier
	// contains filtered or unexported fields
}

func NewSigner added in v0.3.0

func NewSigner(ctx context.Context) (*Signer, error)

func (*Signer) PublicKey added in v0.3.0

func (f *Signer) PublicKey(ctx context.Context) (crypto.PublicKey, error)

Jump to

Keyboard shortcuts

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