Antonio, did you debug the preinstalled openssl app or have you tried
to debug your own version, built with a debug configuration? You get the best results in the debugger if you use the `debug-linux-x86_64`
config target and directory as follows:
util/shlib_wrap.sh gdb
apps/openssl cms -sign -signer
cert.pem -inkey 101 -keyform engine -engine pkcs11 If you can reproduce the crash with your debug version, please
post a backtrace of the call stack when it’s stopped at the segmentation fault. HTH, Matthias Von: openssl-users <openssl-users-bounces@xxxxxxxxxxx>
Im Auftrag von Antonio Iacono Hi, I sign a text file with: openssl cms -sign -signer cert.pem -inkey 01 -keyform engine -engine pkcs11
in openssl.cnf [pkcs11_section] everything works well but if I write a wrong key, es. -inkey 101, this is gdb result: PKCS11_get_private_key returned NULL I realized that the error is probably here: crypto/engine/eng_lib.c line 93 if (e->destroy) CRYPTO_free_ex_data(CRYPTO_EX_INDEX_ENGINE, e, &e->ex_data); if I comment these lines openssl does not crash I do not know engine well and I do not know what these two lines do, if anyone has any suggestions I can do some tests Thanks, Antonio Iacono |
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users