-
Notifications
You must be signed in to change notification settings - Fork 38
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
this applet do not work with jcop31 card #10
Comments
You have a policy on Windows which denies by default the import of the certificate. A capture of apdu will be needed - see the method described in our website |
according to this document https://www.mysmartlogon.com/knowledge-base/save-pfxp12-file-smart-card/ apdu
|
PS C:\Program Files\OpenSC Project\OpenSC\tools> .\gids-tool.exe -v
PS C:\Program Files\OpenSC Project\OpenSC\tools> .\pkcs11-tool.exe --test --login
|
From the card dialog, I didn't see the PUT KEY operations. So either the data you tried to import is invalid (ECC key for example because it not supported) or you did not allow the import of keys (you have both parameters in x64 and in x86 modes) Unless you prove a defect with the applet, this ticket has to be closed. |
problem is my card do not support keygen, therefore I cannot use built in key gen function of the EIDConfigurationWizard. May I know what kind of key it need? |
apdu trace for import a pfx12 (rsa2048 sha256) A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
E0 : CREATE FILE (Creates an EF under the root or the currently selected DF or creates a DF under the root.)
90 00 : Command successfully executed (OK). [I]
44 : ACTIVATE FILE (Changes the state of a file to OPERATIONAL (ACTIVATED).)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
69 84 : Referenced data reversibly blocked (invalidated) [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
E4 : DELETE FILE (Deletes the current DF or EF.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
|
gen new self sign cert A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
CA : GET DATA (Read TLV-coded data objects.)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
E0 : CREATE FILE (Creates an EF under the root or the currently selected DF or creates a DF under the root.)
90 00 : Command successfully executed (OK). [I]
44 : ACTIVATE FILE (Changes the state of a file to OPERATIONAL (ACTIVATED).)
90 00 : Command successfully executed (OK). [I]
47 : GENERATE ASYMMETRIC KEY PAIR (x)
6A 81 : Function not supported [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
E4 : DELETE FILE (Deletes the current DF or EF.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
|
import default certs that available in windoiws A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
CA : GET DATA (Read TLV-coded data objects.)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
E0 : CREATE FILE (Creates an EF under the root or the currently selected DF or creates a DF under the root.)
90 00 : Command successfully executed (OK). [I]
44 : ACTIVATE FILE (Changes the state of a file to OPERATIONAL (ACTIVATED).)
90 00 : Command successfully executed (OK). [I]
47 : GENERATE ASYMMETRIC KEY PAIR (x)
6A 81 : Function not supported [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
E4 : DELETE FILE (Deletes the current DF or EF.)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
DB : PUT DATA (x)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
|
Just for the reference: AFAIK this chip does not support key generation (only import of RSA keys) |
I know that, but what rsa keys are acceptable ? |
I'd guess up to 2k RSA (CRT?) |
I tried sha1-512 rsa 1024\2048 they all give the same error... |
As explained’here (https://www.mysmartlogon.com/knowledge-base/generic-identity-device-specification-gids-kb/) Windows 7 does not support key import. I suggest you try a different approach Then you can have a closer look with the Gemalto minidriver manager or api monitor made by rohitab |
I said I'm using windows 10, and provided the test result for win 7 and win 10 both
I'm using the EIDConfigurationWizard to import a pfx12 cert, it tells me len error.
could you give more detial on this?
cant find "Gemalto minidriver manager " anywhere....
The Microsoft Smart Card Resource Manager is running. --- Reader: Broadcom Corp Contactless SmartCard 0 ======================================================= --------------===========================-------------- ======================================================= --------------===========================-------------- |
its say "Failed to store certificate: Not supported" ??? is there something wrong?
|
Are you trying to import a .crt file (without the private key) instead of a pkcs12 file (which includes the private key) ? |
yes, the crt file do not have a private key. the options are
there is no option for p12 in pkcs15-init |
I also try to import the p12 from EIDConfigurationWizard, it just giving error 69 84 Referenced data reversibly blocked (invalidated) * |
summary it up
failed using EIDConfigurationWizard import a p12, the cert is sha256 with rsa2048 here is the apdu
|
Did you see in the page https://www.mysmartlogon.com/generic-identity-device-specification-gids-smart-card/ Can I import a P12 file ? Since Windows 10, you have to follow this procedure. The Windows 7 native driver prohibits the import of p12 file. Use OpenSC 0.16 or next and issue the command: “c:\Program Files (x86)\OpenSC Project\OpenSC\tools\pkcs15-init.exe” –auth-id 80 –pin –verify-pin -f PKCS12 –passphrase “” t -S <myfile.p12> Then check the import with certutil -scinfo or pkcs15-tool.exe -D |
“c:\Program Files (x86)\OpenSC Project\OpenSC\tools\pkcs15-init.exe” –auth-id 80 –pin –verify-pin -f PKCS12 –passphrase “” t -S <myfile.p12> what is this t for? typo?
store public key seems success however its still empty... Public RSA Key []
store private key will fail... (p12 is the same) Failed to store private key: Internal error |
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
CA : GET DATA (Read TLV-coded data objects.)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
CA : GET DATA (Read TLV-coded data objects.)
6D 00 : Instruction code not supported or invalid [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
CB : GET DATA (CA) (x)
69 84 : Referenced data reversibly blocked (invalidated) [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 82 : File not found [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
90 00 : Command successfully executed (OK). [I]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
A4 : SELECT (FILE) (Selects a DF or an EF by its file ID, path or name (in the case of DFs).)
6A 86 : Incorrect P1 or P2 parameter. [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
20 : VERIFY CHV (Verify the PIN.)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
90 00 : Command successfully executed (OK). [I]
CB : GET DATA (CA) (x)
6A 88 : Referenced data not found [E]
|
|
after dig in to the apdu log, I have some questions. '>>> 00 A4 08 00 04 50 15 49 46 00 according to the iso7816-4 6.11.3 Command message seems to be valid p1 and p2... why its say incorrect? |
Not all cards does support all commands. Only those referenced to the GIDS specifications are supported. |
um...im still new to javacard, however I can do any test you want to figure out what's wrong... |
from my supplier
|
after hours of testing, the exception come from here
|
This is indeed the rsa key import operation. |
it gives InvalidArgumentsException, seems from decodeLengthField |
My guest would be on that line:
or this one:
or this one:
Crashing when dealing with decodeLengthField seems unlikely for me |
@vletoux it is the KeyPair construction (not available/functioning on this card, for some reason). Why do you need to wrap it with a keypair, if it is imported, can't the public and private keys be kept separately? My suggestion would be to omit usage of KeyPair outside of key generation routines and make the crt key file keep public and private keys as separate objects. Looking at the source code - reliance on object deletion is better to be avoided, calling it post-personalization can easily lead to unwanted consequences. It is recommended to do precise resource handling in the code design level instead... |
Indeed, but on my opinion this add some complexity. The key is stored on a CRTKeyFile which is supposed to store also symmetric keys. So I'm not planning to do this fix. If @424778940z find the exact instruction, I can evaluate a workaround but without any proper indication, that is a lot of work for probably no result at all |
I'm not even sure that will work these cards seem to have all sorts of issues. I have several two from the same supplier @424778940z and others from various Chinese companies as and find: KeyPair kp = new KeyPair(KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_2048); throws CryptoException.NO_SUCH_ALGORITHM the cards identify as JCOP3EMV With GP 2.2.1. I can't find reference to them in the NXP NDA docs, the closest is in um367525 which mentions James. |
The "EMV" variant does not have key generation support. It mandates itself by inability to construst KeyPair objects, even from pre-initialized keys. This is why I suggest to drop KeyPair and store PrivateKey and PublicKey instances separately. Only use KeyPair when intending to call genKeyPair(). |
confirmed from vendor, this is true |
Here's a diff for what I meant. Also, not related to this issue, but worth mentioning: I don't know much about the specification and runtime requirements of the application, but it seems to contain questionable constructs. Like keeping secrets in plain byte arrays? |
My supplier(s) claimed also that RSA algorithm support is also missing, I've not had a chance to check this. (The J3H082 and the J3H145 appear to be the J3D081 replacements, but I can't find any suppliers for the J3H082.) |
run into problems while testing EIDAuthenticate
the applet can be successfully dowlnloaded, installed, and initialized.
however, when I open EIDAuthenticate try to install a cert on it, I got following message.
Environment:
Card:
Error message:
The text was updated successfully, but these errors were encountered: