Right now we are integrating our software with Thales Payshield 9000 HSM and have following problem:
We are having difficulties using GK (Export Key under RSA public key) command. We successfully generate DEK key using A0 command. We also successfully import public key to HSM using EO command. Now we want to export DEK key using imported public key. To do that we use GK command. After sending command to HSM we get response from HSM with error code 15 (which means “Invalid input data…”). We are unable to find which message parameter is incorrect / or missing. Maybe someone can provide us with GK command example so we may analyse it and find problem in our message?