I've got a sample from eToken SDK that generates RSA keys, creates digital signature and verifies it. The algorithm in the sample is the following:
- generate RSA keys (GENERATE_KEY_PAIR);
- create security environment for signature (PUT_DATA_SECI);
- restore security environment (MSE RESTORE);
- sign data (PSO_CDS);
- create security environment for verification (PUT_DATA_SECI);
- restore security environment (MSE RESTORE);
- verify signature (PDO_VDS).
I have imported external key containers with certificates to token and I need to get rid of RSA key generation item in algorithm. How may I find Object ID of my private key to pass it to PUT_DATA_SECI APDU command?