Closed DSBloom closed 2 years ago
You can call PivSession.ResetApplication()
. That should automatically take care of everything for you. Documentation here: https://docs.yubico.com/yesdk/yubikey-api/Yubico.YubiKey.Piv.PivSession.ResetApplication.html
Generally, you should only need to drop into the Commands
namespace if you're trying to do something low-level, or something that hasn't yet made it into the higher-level APIs.
How did I miss that? Thank you for the quick reply. I swear I'm reading the docs!
In our current use case we reset the PIV application on our Yubikeys before we provision them. This is easy with the ykman tool, but with the SDK it requires that both the PIN and PUK be blocked before the
ResetPivCommand
will work.Does ykman block out the PIN and PUK in the background when it resets the PIV app? What would be the best way for us to block out those secrets before we run the
ResetPivCommand
?