ykpiv

package
v0.0.0-...-3746c95 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:   "ykpiv [options] command",
		Short: "commands for managing PIV on Yubikeys",
	}
)

Functions

This section is empty.

Types

type ForceFlag

type ForceFlag bool

func (*ForceFlag) Init

func (f *ForceFlag) Init(flags *flag.FlagSet, helpText string)

type KeyFlags

type KeyFlags struct {
	OptPinPolicy   string
	OptTouchPolicy string
}

func (*KeyFlags) Init

func (f *KeyFlags) Init(fs *flag.FlagSet)

func (*KeyFlags) ParsePolicies

func (f *KeyFlags) ParsePolicies() (pp piv.PINPolicy, tp piv.TouchPolicy, err error)

type KeyGenFlags

type KeyGenFlags struct {
	KeyFlags
	OptAlgo string
}

func (*KeyGenFlags) Init

func (f *KeyGenFlags) Init(fs *flag.FlagSet)

func (*KeyGenFlags) PivKey

func (f *KeyGenFlags) PivKey() (key *piv.Key, err error)

type PinFlag

type PinFlag cmd.PromptFlag

func (*PinFlag) Init

func (f *PinFlag) Init(fs *flag.FlagSet, defaultValue string)

func (*PinFlag) PivPrompt

func (f *PinFlag) PivPrompt() (string, error)

func (*PinFlag) PromptFlag

func (f *PinFlag) PromptFlag() *cmd.PromptFlag

func (*PinFlag) Unlock

func (f *PinFlag) Unlock(yk *piv.YubiKey) (managementKey [24]byte, pin string, err error)

type PukFlag

type PukFlag cmd.PromptFlag

func (*PukFlag) Init

func (f *PukFlag) Init(fs *flag.FlagSet, defaultValue string)

type SelectionFlags

type SelectionFlags struct {
	OptSlot   string
	OptSerial uint32
	OptYkName string
}

func (*SelectionFlags) GetYubikey

func (f *SelectionFlags) GetYubikey() (*piv.YubiKey, piv.Slot, error)

func (*SelectionFlags) Init

func (f *SelectionFlags) Init(fs *flag.FlagSet)

Directories

Path Synopsis
gen
csr
key
get
att
im
key

Jump to

Keyboard shortcuts

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