Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad output format for CMS file #20

Open
vadimJS opened this issue Mar 11, 2022 · 1 comment
Open

Bad output format for CMS file #20

vadimJS opened this issue Mar 11, 2022 · 1 comment

Comments

@vadimJS
Copy link

vadimJS commented Mar 11, 2022

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!

@juvian
Copy link

juvian commented Mar 15, 2023

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'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants