I am trying to build a card pin solution whereby customers are able to logon to a web portal and set their own card PIN and afterwards generate a PVV value of the new PIN.
The list of commands I trying to use are
- JG\JH (Translate PIN)
- DG\DH (Generate PVV)
The JG\JH command requires a PIN under LMK which means I need to do a BA\BB command on the customer PIN first before I can proceed. To do this the HSM must be in an authorized state.
Is there a different way of achieving this?