We receive a lot of p7m files, "wrapped Cades" only.
We need to extract content from p7m.
I am able to do manually using an hex editor, cutting before and after the PDF content, or using openssl
command.
Is there a way to do it using php ? I can see openssl
extension but I'm not able to figure out a simple extraction method.
Note: Content is wrapped, not crypted.
I am amble to find python only answers, like this