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 LoginPrompt ¶
LoginPrompt will show an interactive login prompt to receive the HSM pin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.