Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

piv: fixes for older YubiKey versions #59

Merged
merged 1 commit into from
May 12, 2020
Merged

piv: fixes for older YubiKey versions #59

merged 1 commit into from
May 12, 2020

Conversation

ericchiang
Copy link
Collaborator

This change:

  • Introduces a fallback when creating a PrivateKey if the YubiKey
    doesn't support attestation certificates.
  • Fixes tests for older YubiKeys.
  • Notes a bug in PIN caching for older YubiKeys.

Despite the spec[1], older YubiKeys don't let you determine if a PIN is
or isn't needed. This makes it impossible for the package to figure out
if a PIN is cached or we need to prompt. Add a BUG comment warning
against PINPolicyOnce for older YubiKeys.

[1]
https://csrc.nist.gov/CSRC/media/Publications/sp/800-73/4/archive/2015-05-29/documents/sp800_73-4_pt2_draft.pdf#page=20

Fixes #55

This change:
* Introduces a fallback when creating a PrivateKey if the YubiKey
  doesn't support attestation certificates.
* Fixes tests for older YubiKeys.
* Notes a bug in PIN caching for older YubiKeys.

Despite the spec[1], older YubiKeys don't let you determine if a PIN is
or isn't needed. This makes it impossible for the package to figure out
if a PIN is cached or we need to prompt. Add a BUG comment warning
against PINPolicyOnce for older YubiKeys.

[1]
https://csrc.nist.gov/CSRC/media/Publications/sp/800-73/4/archive/2015-05-29/documents/sp800_73-4_pt2_draft.pdf#page=20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests failing on older YubiKeys
1 participant