Command: PUT-KEY

USAGE put-key [-m|--mode modify|replace|add][-r|--replace-keySet key-set]keydef|keyref..
DESCRIPTION Load new keys or key sets into the card/simulation, possibly exchanging the currently active ones. Add/modify/replace one or more DES keys or add one RSA public key.
If the mode option is not set, the default mode is add. If add is not possible, the modify operation will be executed. All keys must belong to the same key set and must be ordered (lowest index first). If the operation mode is 'replace', a replace key set must be defined.
PARAMETER
NameDescriptionRequired
--+- -m -----+--+- modify --+->
  !          !  !           !
  +- --mode -+  +- replace -+
                !           ! 
                +- add -----+
PutKey operation mode. Defines whether the key set to which the keys belong to is to be modified, replaced or added. No
--+- -r ---------------+- key-set ->
  !                    !
  +- --replace-keyset -+
Defines the key set to be replaced. Only applicable if the operation mode is set to 'replace'. No
keydef | keyref.. List of keys to be put onto the card. Either a key reference or definition is to be used. For syntax information, refer to /set-key). Yes
EXAMPLE
cm>  put-key 1/1/DES-ECB/404142434445464748494a4b4c4d4e4f 
                1/2/DES-ECB/404142434445464748494a4b4c4d4e4f 
                1/3/DES-ECB/404142434445464748494a4b4c4d4e4f
 => 80 D8 00 81 43 01 80 10 EF BE E6 C6 D9 9D 7B 70    ....C.........{p
    BD E9 D7 E9 27 F0 20 AF 03 8B AF 47 80 10 EF BE    ....'. ....G....
    E6 C6 D9 9D 7B 70 BD E9 D7 E9 27 F0 20 AF 03 8B    ....{p....'. ...
    AF 47 80 10 EF BE E6 C6 D9 9D 7B 70 BD E9 D7 E9    .G........{p....
    27 F0 20 AF 03 8B AF 47 00                         '. ....G.
 (391 msec)
 <= 01 8B AF 47 8B AF 47 8B AF 47 90 00                ...G..G..G..
Status: No Error

cm>  put-key -m modify 1/1/DES-ECB/000102030405060708090a0b0c0d0e0f 
                          1/2/DES-ECB/404142434445464748494a4b4c4d4e4f 
                          1/3/DES-ECB/404142434445464748494a4b4c4d4e4f
 => 80 D8 01 81 43 00 80 10 1D 43 2D 81 BC 78 42 AE    ....C....C-..xB.
    44 28 D0 4B 4C 87 FC A5 03 DD AD A1 80 10 EF BE    D(.KL...........
    E6 C6 D9 9D 7B 70 BD E9 D7 E9 27 F0 20 AF 03 8B    ....{p....'. ...
    AF 47 80 10 EF BE E6 C6 D9 9D 7B 70 BD E9 D7 E9    .G........{p....
    27 F0 20 AF 03 8B AF 47 00                         '. ....G.
 (0 msec)
 <= 01 DD AD A1 8B AF 47 8B AF 47 90 00                ......G..G..
Status: No Error
  		
CONDITIONS A secure channel must be established (refer to the auth command)