hi,
I can sign data by command line
security cms -S -Z "cert subject key id" -i Desktop/input.txt -o Desktop/output.txt -k com.gemalto.Gemalto-Smart-Card-Token.PKCS11-Token:028a7356
the result of command line is a CMS signed message But I only need sign a hash.
Do you have any command line to sign a hash?