openssl-nodejs icon indicating copy to clipboard operation
openssl-nodejs copied to clipboard

Bad output format for CMS file

Open vadimJS opened this issue 3 years ago • 1 comments

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!

vadimJS avatar Mar 11 '22 06:03 vadimJS

You need to edit in index.js this line:

const checkCommandForIO = element => !element.includes('-outform') && (element.includes('-in') || element.includes('-out') || element.includes('-keyout') || element.includes('-signkey') || element.includes('-key'))

juvian avatar Mar 15 '23 16:03 juvian