How extract XML from P7M

Post Reply
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

How extract XML from P7M

Post by Romeo »

Hi,

is there something to extract XML files from P7M file ?

Tks

Romeo
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: How extract XML from P7M

Post by nageswaragunupudi »

Regards

G. N. Rao.
Hyderabad, India
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Post by Romeo »

I missing to say: "For free" !

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

tks
R
User avatar
vensanto
Posts: 54
Joined: Thu Oct 13, 2005 1:26 pm
Location: ITALIA
Contact:

Re: How extract XML from P7M

Post 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
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Post by Romeo »

i will try

tks many
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Post by Romeo »

Great !

it works !

tks
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: How extract XML from P7M

Post 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
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Post by Romeo »

Ciao Enrico,

did you use openssl.exe ?

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


ciao
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: How extract XML from P7M

Post 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
Romeo
Posts: 328
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Post by Romeo »

No problem !
Ciao
Post Reply