Search code examples
keypkijavacard

Java card key installation


I am new to java card development.i want to know how we can store secure key values in the java card applet.because i want to use PKI (public key infrastructure) for the authentication.is it possible ?? if yes how we can store key in java card applet.


Solution

  • Yes, it is possible because javacard supports asymmetric cryptography i.e. RSA.

    You can instantiate your keys during creation of the applet either using predefined arrays, applet specific installation parameter, or proprietary APDUs. Then the private keys shall be stored in RSAPrivateKey.

    If your card support Global Platform, please take a look on the card specification. They provide variety ways of keys loading and content loading.