Hello Everybody I am writing a AS2 Server at the moment (in PHP), to send EDI messages over HTTP. The messages are signed and encrypted with Openssl S/MIME. The AS2 specification demands from me to send back the sha1 digest (extracted from the signature) in a header field of the message delivery notification (MDN).
At the moment I use the PHP function openssl_pkcs7_verify() to verify the signature (I also could use the openssl command line tool with a system command). But verify is not enough, because I need to send back the digest. Is there any way to extract the digest from the signature. I couldn't find a solution for that after hours of searching the internet an all my encryption books. A lot of people ask for that feature. But most of them just need to verify the signature. But I really need the sha1 digest. Best Regards Roland Flury
smime.p7s
Description: S/MIME cryptographic signature