FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How extract XML from P7M
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
How extract XML from P7M
Posted: Mon Jun 17, 2019 10:25 AM

Hi,

is there something to extract XML files from P7M file ?

Tks

Romeo

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: How extract XML from P7M
Posted: Mon Jun 17, 2019 11:51 AM
Regards



G. N. Rao.

Hyderabad, India
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: How extract XML from P7M
Posted: Mon Jun 17, 2019 02:59 PM

I missing to say: "For free" !

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

tks
R

Posts: 58
Joined: Thu Oct 13, 2005 01:26 PM
Re: How extract XML from P7M
Posted: Tue Jun 18, 2019 03: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

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: How extract XML from P7M
Posted: Wed Jun 19, 2019 04:01 PM

i will try

tks many

Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: How extract XML from P7M
Posted: Wed Jun 19, 2019 05:45 PM

Great !

it works !

tks

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How extract XML from P7M
Posted: Thu Jun 20, 2019 09:37 AM
I get this:

Code (fw): Select all Collapse
Error reading S/MIME message
7344:error:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto\asn1\tasn_dec.c:1130:
7344:error:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto\asn1\tasn_dec.c:290:Type=PKCS7


What am I missing?

EMG
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: How extract XML from P7M
Posted: 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

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How extract XML from P7M
Posted: Thu Jun 20, 2019 03: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
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM
Re: How extract XML from P7M
Posted: Fri Jun 21, 2019 06:49 AM

No problem !
Ciao

Continue the discussion