Re: File signing/encrypting upgrade from 1.0.2 to 1.1.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2018-03-29 09:07, schrieb Jan Kohnert:
Next update after clean test on another Win32 maschine: there have to
be crypt32.lib and ws2_32.lib libs linked, besides that the code is
unchanged. As the code produces correct asn1 files on Linux (see
previous mail), it now looks even more like a bug in the
crypto-library on Windows...

Following output:

[...]

C:\Users\Alkes\Downloads\TestCrypt\build>openssl smime -decrypt -inform
DER -in
testfile.crypt -inkey local.key -out testfile.sig

C:\Users\Alkes\Downloads\TestCrypt\build>openssl smime -verify -inform
DER -in t
estfile.sig -CAfile local.cert
Error reading S/MIME message

Damnit! Problem exists between keyboard and chair. Command should have been: openssl smime -verify -inform DER -in t estfile.sig -binary -CAfile local.cert
                                                    ^^^^^^^
It was the decrypting messing up the asn1-structure on Win when not using the
binary option (-outform DER whould have worked, too).

So the code works in Win and Linux. :) Thread closed.

--
Best regards Jan
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux