Configuring Sample_Device
These are the steps to configure the
Sample_Device
:
- In Eclipse, from the Window menu, select Preferences.
- In the Preferences dialog, click on the arrow to the left of Java Card Platforms and select Java Card Devices.
- Check that Sample_Platform is selected in the upper combo box.
- Select Sample_Device.
- Press Edit... button.
- Upon first use, you will notice an error below the dialog title because
the Configuration file is not specified. A valid Configuration file must be entered
in the Config file: field. A template file can be found here:
<absolute-path-to-jc-simulator>
/samples/client.config.properties
. This file is also used by the samples (refer to the How to Run the Samples section) and has to be modified to also include:- A valid ISD entry (Note: No template line is present in this template file)
- A valid SCP03 key set injected into simulator binary (see Configuring the Java Card Development Kit Simulator)
The configuration file must at least contain the following entries:
ISD=<IssuerSecurityDomainAID> <IssuerSecurityDomainAID>_scp03enc_10=<k_enc> <IssuerSecurityDomainAID>_scp03mac_10=<k_mac> <IssuerSecurityDomainAID>_scp03dek_10=<k_dek>
For example, the following entries match the information in the example provided in Configuring the Java Card Development Kit Simulator when the simulator is provisioned for the first time.
ISD=A000000151000000 A000000151000000_scp03enc_10=1111111111111111111111111111111111111111111111111111111111111111 A000000151000000_scp03mac_10=2222222222222222222222222222222222222222222222222222222222222222 A000000151000000_scp03dek_10=3333333333333333333333333333333333333333333333333333333333333333
- Press OK button.
Note:
Sometimes the Device Properties window displays an error about "Device Unique ID". This can be fixed by closing the window, then reloading the JavaCard View and re-opening Device Properties. JavaCard View can be reloaded by the 'Reload the view' button from View toolbar or by right-clicking on the top tree item and then selecting the Reload menu.