1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

add message when user is required to touch yubikey to sign. N.B. touch is required during Sign, not SignInit

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
David Lawrence
2015-11-04 14:32:41 -08:00
parent 1230f5a41d
commit cf50ffcd33

View File

@@ -243,6 +243,7 @@ func sign(ctx *pkcs11.Ctx, session pkcs11.SessionHandle, pkcs11KeyID []byte, pas
// Get the SHA256 of the payload
digest := sha256.Sum256(payload)
fmt.Println("Please touch the attached Yubikey to perform signing.")
sig, err = ctx.Sign(session, digest[:])
if err != nil {
logrus.Debugf("Error while signing: %s", err)