How to run OpenSSL command line utility under debugger?

Anton Schmidt schmidt.ajax at
Tue Oct 15 05:59:46 UTC 2019

I've got an error in openssl library function when trying to read a pkcs7

[schmidt at localhost ssl]$ ./bin/openssl version
OpenSSL 3.0.0-dev xx XXX xxxx (Library: OpenSSL 3.0.0-dev xx XXX xxxx)
[schmidt at localhost ssl]$ ./bin/openssl pkcs7 -in
/tmp/55b0822e148e4ffaa0bd9ebc41814f54.der -inform DER -print_certs
unable to load PKCS7 object
40:57:70:89:A5:7F:00:00:error:asn1 encoding routines:(unknown
function):sequence length
40:57:70:89:A5:7F:00:00:error:asn1 encoding routines:(unknown
function):nested asn1 error:crypto/asn1/tasn_dec.c:629:
40:57:70:89:A5:7F:00:00:error:asn1 encoding routines:(unknown
function):nested asn1 error:crypto/asn1/tasn_dec.c:479:Field=d.enveloped,

openssl asn1parse and other online tools correctly parse and display ASN1
of pkcs7 envelopedData.

I want to run openssl utility under debugger to see what is happening
inside the library function.

I've found OpenSSL library source code but
not the sources for command line utility. Are the sources available?

Or as an option is there a guide how I could write a simple pkcs7
envelopedData reader to debug the library function?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list