eniocarboni / p7m

p7m è uno script per la gestione dei file con firma digitale nel formato CADES
https://quoll.it/firma-digitale-p7m-come-estrarre-il-contenuto/
GNU General Public License v3.0
48 stars 5 forks source link

Convert .p7m in .asc #18

Closed pfloriginale closed 3 years ago

pfloriginale commented 3 years ago

Hi Super Ennio, today happened a strange thing...

One of my supplier send me a .p7m that once is converted, become a .asc

I need obviusly, the .xml nested, cause I need parsify it for my accountant software...

You'll find the file in attach.

thanks a lot!

IT01558670780_W3662.xml.p7m.zip

eniocarboni commented 3 years ago

I @pfloriginale your converted file .asc is an xml, just rename the file from .asc to .xml. Unfortunately your xml invoice does not start as it should and that is with the line:

<?xml version="1.0" encoding="utf-8"?>

It is for this reason that the extension .asc (ascii) is added by the p7m program (the file is recognized as: type: text/plain and not type: text/xml | application/xml)

Here you can see a correct invoice xml file.