U
U
Ura782011-07-22 16:17:41
OpenSSL
Ura78, 2011-07-22 16:17:41

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

3 answer(s)
U
Ura78, 2011-07-26
@Ura78

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

C
ComputerPers, 2011-07-22
@ComputerPers

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

C
codecity, 2011-07-23
@codecity

Do you want to register your crypto-provider? If my sclerosis does not change me, then I need a trusted certificate. And not every codesigning will do. And yet, this check option can somehow be disabled.
But that's about it. Might lead you on a trail.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question