pivcli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Confirm = func(p string) bool {
	prompt := promptui.Prompt{
		Label:     p,
		IsConfirm: true,
	}

	result, err := prompt.Run()
	if err != nil {
		fmt.Println(err)
		return false
	}
	return strings.ToLower(result) == "y"
}

Functions

func Attestation

func Attestation() *ffcli.Command

func GenerateKey

func GenerateKey() *ffcli.Command

func GenerateKeyCmd

func GenerateKeyCmd(ctx context.Context, managementKey string, randomKey bool) error

func PivKey

func PivKey() *ffcli.Command

func ResetKey

func ResetKey() *ffcli.Command

func ResetKeyCmd

func ResetKeyCmd(ctx context.Context) error

func SetManagementKey

func SetManagementKey() *ffcli.Command

func SetManagementKeyCmd

func SetManagementKeyCmd(_ context.Context, oldKey, newKey string, randomKey bool) error

func SetPin

func SetPin() *ffcli.Command

func SetPinCmd

func SetPinCmd(_ context.Context, oldPin, newPin string) error

func SetPuk

func SetPuk() *ffcli.Command

func SetPukCmd

func SetPukCmd(_ context.Context, oldPuk, newPuk string) error

func Unblock

func Unblock() *ffcli.Command

func UnblockCmd

func UnblockCmd(_ context.Context, oldPuk, newPin string) error

Types

type Attestations

type Attestations struct {
	DeviceCert     *x509.Certificate
	KeyCert        *x509.Certificate
	KeyAttestation *piv.Attestation
}

func AttestationCmd

func AttestationCmd(_ context.Context) (*Attestations, error)

Jump to

Keyboard shortcuts

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