Command: SET-KEY

USAGE set-key keyref..
DESCRIPTION Registers the secret key(s) with the CardManager plugin for use in the secure messaging during authentication.
PARAMETER
NameDescriptionRequired
keydef Space separated list of keys to be set in off-card repository. The key syntax is:
SET/ID
SET and ID are the key-set version and key identifier.
TYPE
TYPE specifies the key type is must be one of:
  • DES
  • DES-ECB
  • DES-CBC
  • RSA-PRIV
  • RSA-PUB
  • RSA-CRT
  • DSA-PRIV
  • DSA-PUB
HEX
HEX is the representation of the key material. White space is allowed in HEX between pair of hex digits.
Any slash can be substituted by the following characters: '.,|;:
Yes
EXAMPLE
cm>  set-key 200/1/DES-ECB/404142434445464748494a4b4c4d4e4f 
                200/2/DES-ECB/404142434445464748494a4b4c4d4e4f
cm>  set-key 201/1/DES-CBC/505152535455565758595a5b5c5d5e5f 
                201/2/DES-CBC/505152535455565758595a5b5c5d5e5f 
                201/3/505152535455565758595a5b5c5d5e5f
jcshell: set-key: Malformed key - expecting: SET/ID/TYPE/DATA

cm>  set-key 201/1/DES-CBC/505152535455565758595a5b5c5d5e5f 
                201/2/DES-CBC/505152535455565758595a5b5c5d5e5f 
                201/3/DES-CBC/505152535455565758595a5b5c5d5e5f

cm>  print-key
255/1/DES-ECB/404142434445464748494A4B4C4D4E4F
255/2/DES-ECB/404142434445464748494A4B4C4D4E4F
255/3/DES-ECB/404142434445464748494A4B4C4D4E4F
200/1/DES-ECB/404142434445464748494A4B4C4D4E4F
200/2/DES-ECB/404142434445464748494A4B4C4D4E4F
201/1/DES-CBC/505152535455565758595A5B5C5D5E5F
201/2/DES-CBC/505152535455565758595A5B5C5D5E5F
201/3/DES-CBC/505152535455565758595A5B5C5D5E5F

  		
CONDITIONS None.