I am trying to sign a pdf file in AWS CloudHSM using the command described here https://docs.aws.amazon.com/cloudhsm/latest/userguide/key_mgmt_util-sign.html.
I am running following command
sign -f sample.pdf -k 7 -m 1 -out signedFile.pdf
where sample.pdf is the message file and 7 is the private key handle.
Command got successful but the new signed file generated signedFile.pdf
is corrupted. What's the issue in above command?