fulcio

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetCert

func GetCert(ctx context.Context, priv *ecdsa.PrivateKey, idToken, flow, oidcIssuer, oidcClientID string, fClient api.Client) (*api.CertificateResponse, 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.

func GetRoots

func GetRoots() *x509.CertPool

func NewClient

func NewClient(fulcioURL string) (api.Client, error)

Types

type Signer

type Signer struct {
	Cert  []byte
	Chain []byte
	SCT   []byte

	*signature.ECDSASignerVerifier
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(ctx context.Context, idToken, oidcIssuer, oidcClientID string, fClient api.Client) (*Signer, error)

func (*Signer) PublicKey

func (f *Signer) PublicKey(opts ...signature.PublicKeyOption) (crypto.PublicKey, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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