I am running this command:
openssl cms -sign -nodetach -binary -in receipt.json -text -outform der -out receipt.p7b -nocerts -signer MyCRT.crt -inkey MyKey.key
But got error: Bad output format for CMS file
However running this command manualy in command line works perfectly well.
Please help me with this issue! Thanks in advance!