Page 1 of 1

How extract XML from P7M

Posted: Mon Jun 17, 2019 10:25 am
by Romeo
Hi,

is there something to extract XML files from P7M file ?

Tks

Romeo

Re: How extract XML from P7M

Posted: Mon Jun 17, 2019 11:51 am
by nageswaragunupudi

Re: How extract XML from P7M

Posted: Mon Jun 17, 2019 2:59 pm
by Romeo
I missing to say: "For free" !

I am searching some sample with FWH o same PHP to run...

tks
R

Re: How extract XML from P7M

Posted: Tue Jun 18, 2019 3:53 pm
by vensanto
Hello
you must use the OPENSSL command

below an example:

// ---------------------------------------------------//

nFIN:="file.xml.p7m"

nFOUT:="file.xml"

nCMD:="openssl smime -verify -noverify -in "+nFIN+" -inform DER -out "+nFOUT

WaitRun(nCMD,0) // 0 = esegue la finestra in HIDE

// ---------------------------------------------------//

Regards
Santo Venezia - Italy

Re: How extract XML from P7M

Posted: Wed Jun 19, 2019 4:01 pm
by Romeo
i will try

tks many

Re: How extract XML from P7M

Posted: Wed Jun 19, 2019 5:45 pm
by Romeo
Great !

it works !

tks

Re: How extract XML from P7M

Posted: Thu Jun 20, 2019 9:37 am
by Enrico Maria Giordano
I get this:

Code: Select all

Error reading S/MIME message
7344:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto\asn1\tasn_dec.c:1130:
7344:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:290:Type=PKCS7
What am I missing?

EMG

Re: How extract XML from P7M

Posted: Thu Jun 20, 2019 11:30 am
by Romeo
Ciao Enrico,

did you use openssl.exe ?

If yes, send me a P7M file, i will try it !
romeo1960@gmail.com


ciao

Re: How extract XML from P7M

Posted: Thu Jun 20, 2019 3:47 pm
by Enrico Maria Giordano
Romeo wrote:did you use openssl.exe ?
Yes.
Romeo wrote:If yes, send me a P7M file, i will try it !
That file is not mine, so I can't send it to you, sorry.

EMG

Re: How extract XML from P7M

Posted: Fri Jun 21, 2019 6:49 am
by Romeo
No problem !
Ciao