How extract XML from P7M

How extract XML from P7M

Postby Romeo » Mon Jun 17, 2019 10:25 am

Hi,

is there something to extract XML files from P7M file ?

Tks

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

Re: How extract XML from P7M

Postby nageswaragunupudi » Mon Jun 17, 2019 11:51 am

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10653
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How extract XML from P7M

Postby Romeo » Mon Jun 17, 2019 2:59 pm

I missing to say: "For free" !

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

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

Re: How extract XML from P7M

Postby vensanto » Tue Jun 18, 2019 3:53 pm

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
User avatar
vensanto
 
Posts: 58
Joined: Thu Oct 13, 2005 1:26 pm
Location: ITALIA

Re: How extract XML from P7M

Postby Romeo » Wed Jun 19, 2019 4:01 pm

i will try

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

Re: How extract XML from P7M

Postby Romeo » Wed Jun 19, 2019 5:45 pm

Great !

it works !

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

Re: How extract XML from P7M

Postby Enrico Maria Giordano » Thu Jun 20, 2019 9:37 am

I get this:

Code: Select all  Expand view  RUN
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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How extract XML from P7M

Postby Romeo » Thu Jun 20, 2019 11:30 am

Ciao Enrico,

did you use openssl.exe ?

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


ciao
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Re: How extract XML from P7M

Postby Enrico Maria Giordano » Thu Jun 20, 2019 3:47 pm

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
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: How extract XML from P7M

Postby Romeo » Fri Jun 21, 2019 6:49 am

No problem !
Ciao
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests