Next: , Previous: , Up: Scdaemon Protocol   [Contents][Index]

6.6.5 Signing data with a Smartcard

To sign some data the caller should use the command

 SETDATA hexstring

to tell scdaemon about the data to be signed. The data must be given in hex notation. The actual signing is done using the command

  PKSIGN keyid

where keyid is the hexified ID of the key to be used. The key id may have been retrieved using the command LEARN. If another hash algorithm than SHA-1 is used, that algorithm may be given like:

  PKSIGN --hash=algoname keyid

With algoname are one of sha1, rmd160 or md5.