Add and document app-init helper script #6
+76
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm well aware this repository hasn't been updated in five years, and I can see a valid-looking PR already open to fix a bug, so I don't anticipate this PR will be merged. Nonetheless I hope this will help someone who uses the working code in this repository.
The applet here can generate HMAC challenge-response codes on a JavaCard that isn't a Yubikey. When you set it up that way, you need to get the "slot config" - the HMAC secret - into the applet somehow.
This pull request contains a simple Python script that will emit the correct ADPUs to program an arbitrary JavaCard with an HMAC secret of the user's choice. I had to learn ISO7816 to write this script; perhaps with it in hand, someone else can skip that journey of discovery and make easier use of their own smartcard.
Documentation for the use of the script is also included.