keystore

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KeymodeNone means that no touch or PIN is required to sign with the yubikey
	KeymodeNone = 0
	// KeymodeTouch means that only touch is required to sign with the yubikey
	KeymodeTouch = 1
	// KeymodePinOnce means that the pin entry is required once the first time to sign with the yubikey
	KeymodePinOnce = 2
	// KeymodePinAlways means that pin entry is required every time to sign with the yubikey
	KeymodePinAlways = 4
)

Variables

This section is empty.

Functions

func AddKey

func AddKey(libPath string, privKey *rsa.PrivateKey, certBytes []byte) error

AddKey will add a private key to the device

func ListKeys

func ListKeys(libPath string) error

ListKeys will list all the keys on the device

func LoginPrompt

func LoginPrompt(ctx *pkcs11.Ctx, session pkcs11.SessionHandle, userFlag uint) error

LoginPrompt will show an interactive login prompt to receive the HSM pin

func SetupHSM

func SetupHSM(libPath string) (*pkcs11.Ctx, pkcs11.SessionHandle, error)

SetupHSM will initialize a pkcs11 context based on the path to the pkcs11 library

Types

This section is empty.

Jump to

Keyboard shortcuts

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