Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

resetyubi.bat does not properly recognize failed reset #1

Open
JanMosigItemis opened this issue Jun 11, 2019 · 0 comments
Open

resetyubi.bat does not properly recognize failed reset #1

JanMosigItemis opened this issue Jun 11, 2019 · 0 comments

Comments

@JanMosigItemis
Copy link
Owner

Actual Behavior
Even if gpg-connect-agent runs into errors while executing the reset script, the resetyubi.bat script reports success, probably due to gpg-connect-agent not handling the errorlevel correctly.

Expected Behavior
Recognize error and stop script. Return errorlevel 1

Log

.....| Yubikey reset script
.....| Version: 0.1.0
About to reset your YubiKey's OpenPGP module. Continue (y/[n])? y
Now resetting..
Yubikey reset input comes from https://gist.github.com/pkirkovsky/c3d703633effbdfcb48c
S SERIALNO D2760001240102000006063538460000
OK
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
ERR 65547 Bad passphrase <Unspecified source>
Yubikey has been successfully reset.
The factory default PINs are 123456 (user) and 12345678 (admin).
..Success
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

No branches or pull requests

1 participant