-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: support all roles in yubikey #653
Conversation
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
659d53b
to
13359e1
Compare
ctx, | ||
session, | ||
privKey, | ||
slot, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been wondering if we should change the signatures for addECDSAKey
and createLoadCert
to have a slotID
variable instead of privKeyID
variable, WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The terminology is weird and we never settled on something. If memory serves (from discussions with the Yubikey folks 4-5 months back), in PKCS11 a "slot" is technically a device, i.e. the Yubikey itself is a PKCS11 "slot". I'm not sure what the correct term is for the space that a key actually resides in. We should find out and stop using "slot" because it'll just confuse anyone familiar with PKCS11.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like "token"? The pkcs11 spec has a nice section for definitions on page 12 of the core specification PDF (numbered pg6 on the document)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, token
does appear to be the correct PKCS11 name. I'll switch over to that in the PR.
Hi, @endophage if you could put a new line between your commit message and the sign-off-by, it will be better when we use |
There have been a lot of changes so closing this. Will preserve branch for future reference. |
Signed-off-by: David Lawrence david.lawrence@docker.com (github: endophage)