javacardglobalplatformjcop

How to do a DAP verification in .cap files loading?


I want to install a .cap file. But I want the Card Manager to do a DAP verification during uploading my file. What shall I do? Does it check the DAP by default or I must use some parameters in the installation process?

My smart card is a Java Card 3.0.1 that is compliant with Global Platform 2.2.1

Note that I am using Eclipse and JCDK for developing applets and I use gp and JCManager for uploading applets.


Solution

  • Answer to your questions :

    There are following two scenarios, if any one of the scenario will occur then DAP block will necessary in the Load block :

    1.If any Security Domain has the Mandated DAP Verification privilege and if so: Authentication data (DAP Block identifying the above Security Domain) should be present in the Load File.

    2.If the associated Security Domain has the DAP Verification privilege and if so: Authentication data (DAP Block identifying the associated Security Domain) should be present in the Load File.

    You need to set appropriate privilege during Installation process of security domain (as explained above). DAP verification keys are also need to be put in security domain which will verify the DAP. DAP Keys can be of RSA or DES and must be put with a specific key version.

    For more details please refer Global Platform specification GPC_Specification_2.2.1