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
When I get time I should use nfc-pcsc/cordova nfc to throw these APDUs at a ring and see what I get back
Don't give up on 6A82/6985/error.. It is expected while it tries to auth to various security domains (see below).. The line beginning with 80 E8 00 is where the stack-overflow errored so really we're looking to see if we can get to that point and ideally a 9000 response..
Thinking: Can I use APDUs to upload a simple Hello world.
If anyone gets to this before me then feel free to action on my behalf =)
Should the APDU above succeed we can progress onto exploring how .jar's are converted to APDUs by the GP tool and hopefully doing that in JS instead of C/Py/Java
nfc-pcsc snippit (hand written w/ no syntax/sanity checking)
The scriptgen tool converts a package contained in a CAP file into a script file. The script file contains a sequence of APDUs in ASCII format suitable for another tool, such as apdutool, to send to the CAD. The CAP file component order in the APDU script is identical to the order recommended by the Virtual Machine Specification for the Java Card Platform, Version 2.2.2.
It is possible that we host an API that exposes various "scripts" for each .cap/.jar we want to support on the rings and/or make that public/open source for others to contribute their projects. It really depends on how the ecosystem wants to look.
I'm working on some node.js stuff for this uploading challenge. In the meantime, get a copy of the GlobalPlatform spec. It'll explain a lot of the APDUs above.
e.g. see page 209 for an explanation of the secure channel handshake
When I get time I should use nfc-pcsc/cordova nfc to throw these APDUs at a ring and see what I get back
Don't give up on 6A82/6985/error.. It is expected while it tries to auth to various security domains (see below).. The line beginning with
80 E8 00
is where the stack-overflow errored so really we're looking to see if we can get to that point and ideally a 9000 response..Source: https://stackoverflow.com/questions/23670367/upload-a-cap-file-on-smart-card
Thinking: Can I use APDUs to upload a simple Hello world.
If anyone gets to this before me then feel free to action on my behalf =)
Should the APDU above succeed we can progress onto exploring how .jar's are converted to APDUs by the GP tool and hopefully doing that in JS instead of C/Py/Java
nfc-pcsc snippit (hand written w/ no syntax/sanity checking)
For examples of nfc-pcsc usage w/ APDUs see https://gist.github.com/JohnMcLear/5cef778b3582ee6ebac7db4bb91a5fc8
For example of an application that appears to take .cap files in and spit out an APDU script see https://askra.de/software/jcdocs/kit-user-2.2.2/cJDKinstaller.html
It is possible that we host an API that exposes various "scripts" for each .cap/.jar we want to support on the rings and/or make that public/open source for others to contribute their projects. It really depends on how the ecosystem wants to look.
Output
The text was updated successfully, but these errors were encountered: