Action (-ACTION)

Use the Action adapter command (-ACTION) to specify what action needs to be performed by the adapter.


-ACTION action

The following table lists the action values and their meaning:

Action
Meaning
SIGN
Only sign the message and return the signed data. The -PW adapter command must be specified along with this action to specify the password used to access the signer's private key. The -USER adapter command might be used to specify the signer other than the default user.
ENCRYPT
Only encrypt the message and return the encrypted data. The -R adapter command must be used along with this action to specify the user for which the message is being encrypted.
SIGNANDENCRYPT
Sign and encrypt the message and return the signed and encrypted data.
VERIFY
Only verify the signed message. No data is returned.
DECRYPT
Only decrypt the encrypted message and return the original data. If the message is signed, the signature is verified as well. This is the default action.
VERIFYANDDECRYPT
Same as DECRYPT. The signature is automatically verified if it is present in the encrypted message.