Hi I couldn't find a way to convert an opaque pkcs#7(p7m) in a clear text deatached smime so that the signed content could be processed by regular mime libraries.
I'd like to take p7m file and convert it to an smime message keping a valid signature.
The steps should be:
extract signed content from p7m
extract cms structure from p7m
pack everything in a new smime structure with detached signature
Is this operation possible ?
I've searched through openssl manuals but I couldn't find a way to do it.