Closed TuanTAg closed 2 years ago
Thanks for reporting this issue. We'll take a look and get back to you!
Thank @GregDomzalski!
Hi @TuanTAg,
That exception is often seen in two scenarios:
Can you please verify that the slot that you are trying to attest has a generated key rather than an imported key?
This article goes into depth on the PIV attestation feature: https://docs.yubico.com/yesdk/users-manual/application-piv/attestation.html
@GregDomzalski thank for responding. I will check and revert!
Closing out old issues.
If this is something you are still encountering and require further assistance, please feel free to re-open this issue.
Hi, I am using Yubico.Yubikey (1.1.0) what version is downloaded from nuget in .Net 4.7.2, I have tried to create key attestation with Yubikey Token, I have tried with 2 Yubikey Token, the function success with Yubikey 5 NFC (Firmware: 5.4.3) but throw exception with Yubikey FIPS (Firmware: 4.4.2), exception: "Incorrect paramerters in the command data field". This is my code:
public static void RunCreateAttestationStatement( IYubiKeyDevice yubiKey, byte slotNumber, out X509Certificate2 certificate) { using (var pivSession = new PivSession(yubiKey)) { certificate = pivSession.CreateAttestationStatement(slotNumber); } }
Can you help me check it?