5.25. Import External Object Create

In this example, we send a raw APDU to SE05x which will import the external object wrapped with ECKey context in the APDU.

Note

This APDU must be prepared by se05x_ImportExternalObjectPrepare executable.

5.25.1. Pre-requisites

Raw APDU should be prepared by se05x_ImportExternalObjectPrepare. Refer to Section 5.24 Import External Object Prepare.

5.25.2. Building

Build the project with the following configurations.

se05x_ImportExternalObjectCreate

  • Project = se05x_ImportExternalObjectCreate

  • SCP=SCP03_SSS

  • SE05x_Auth=None or SE05x_Auth=PlatfSCP03

5.25.3. How to use

Run executable se05x_ImportExternalObjectCreate as

se05x_ImportExternalObjectCreate.exe -file rawAPDU.der <portName>

where,

  • file is the input file containing raw APDU to be sent. Same as the output file from se05x_ImportExternalObjectPrepare.

  • portName is the name of the port over which to connect (COMPORT in case running over VCOM)

Note

se05x_ImportExternalObjectCreate example will fail if the object already exists.