Answer the question
In order to leave comments, you need to log in
Signing a file with openssl for CAPICOM?
Greetings! Please tell me how to sign a binary file using openssl for verification in CAPICOM ?
I do this:
openssl smime -sign -binary -in data.bin -signer demo.pem -inkey demo.key -out sign.txt -outform PEM
When checking CAPICOM, it says "The signature is not correct"
Answer the question
In order to leave comments, you need to log in
The solution turned out to be this:
It was not me who found the solution, but Evgeny Maksin . Unfortunately, he does not yet have a nickname on Habré.
iconv -f utf-8 -t utf-16le data.bin > data-utf16le.bin
openssl smime -sign -binary -noattr -in data-utf16le.bin -signer demo.pem -inkey demo.key -out sign.txt -outform PEM
I’m afraid it’s difficult to give you an exact answer - you need to understand deeply, or skinte an example of how to check it yourself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question