You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For one, you send instruction 0xFD (getVersion) against the PIV app, I guess because Yubico implements it there. Secondly, instruction 0x01 is used, is this also an idiosyncrasy? As ISO 7816-4 does not contain it. I can "fake" responses here, but it would be neat if answering these commands for non-Yubikeys would not be mandatory.
is only the RID for NIST, the AID should be either the right-truncated or full version, including the the PIV app's PIX [0x00, 0x00, 0x10, 0x00] or additionally its version [0x01, 0x00].
The text was updated successfully, but these errors were encountered:
Yep I'm not surprised this only works with YubiKeys since it's the only thing I've tested against. Much of the spec logic is ported directly from the ykpiv C codebase. That's also what's up with all the "YubiKey" structs :)
It'd be good to understand what changes we'd need to make to support other smart cards that implement PIV. Given that, if it's a larger change I likely won't have bandwidth to maintain it. For example I don't own a SoloKey.
If you send changes that don't expose new APIs and keep the YubiKey portions running, I'm happy to test and merge them. If you'd like to add new APIs (e.g. add a SoloKey type), I'd like to discuss that before taking PRs.
Hi! I am writing a PIV application for SoloKeys, and found some idiosyncrasies in this repository (which is named
piv-go
and notyubico-piv-go
👼).This is the start of the "handshake" when I run @FiloSottile's https://github.com/FiloSottile/yubikey-agent:
For one, you send instruction
0xFD
(getVersion) against the PIV app, I guess because Yubico implements it there. Secondly, instruction0x01
is used, is this also an idiosyncrasy? As ISO 7816-4 does not contain it. I can "fake" responses here, but it would be neat if answering these commands for non-Yubikeys would not be mandatory.Also, the "AID" in
piv-go/piv/piv.go
Line 336 in 564f246
[0x00, 0x00, 0x10, 0x00]
or additionally its version[0x01, 0x00]
.The text was updated successfully, but these errors were encountered: