Skip to content

Conversation

Merovius
Copy link
Contributor

Add support for a YubiKey vendor extension to retrieve public metadata (including the public key, PIN/Touch policies and whether or not the key was hardware generated) for a given key slot.

Also use this new method to determine the pin policy, for YubiKeys that support it. This is more general than using the attestation certificate, as it also works for keys that have been generated offline and imported into the hardware token.

Fixes #129

Add support for a YubiKey vendor extension to retrieve public metadata
(including the public key, PIN/Touch policies and whether or not the key
was hardware generated) for a given key slot.

Also use this new method to determine the pin policy, for YubiKeys that
support it. This is more general than using the attestation certificate,
as it also works for keys that have been generated offline and imported
into the hardware token.

Fixes go-piv#129
@Merovius
Copy link
Contributor Author

TestYubiKeyPINRetries fails with the YubiKey I use for testing, but it fails on master as well. I will try to investigate why that is and might send a separate PR.

@ericchiang
Copy link
Collaborator

I think many of the tests are flakey since we don't have a good way to test them automatically, and I always end up testing with a different yubikey version. I wouldn't worry about it too much.

Thanks a bunch for the PR! I'll cut a release when I get a chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GET METADATA command and use it to derive default PIN policy
2 participants