doc:appunti:software:pec_fattura_contraffatta
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:software:pec_fattura_contraffatta [2019/11/08 13:01] – [File p7m] niccolo | doc:appunti:software:pec_fattura_contraffatta [2026/06/12 10:19] (current) – [Come aprire i file p7m] niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Falsa fattura elettronica via PEC ====== | ====== Falsa fattura elettronica via PEC ====== | ||
| + | |||
| + | {{.: | ||
| Con l' | Con l' | ||
| Line 40: | Line 42: | ||
| < | < | ||
| - | openssl smime -decrypt | + | openssl smime -verify -inform PEM -in doc_2018966.pdf.p7m -noverify -out doc_2018966.pdf |
| + | </ | ||
| + | |||
| + | Un esempio simile usando l' | ||
| + | |||
| + | < | ||
| + | openssl cms -verify -inform DER -in IT01879020517A2026_dYw86.xml.p7m -noverify -out extracted.xml | ||
| </ | </ | ||
| Line 59: | Line 67: | ||
| </ | </ | ||
| + | ===== Documenti firmati in formato CMS ===== | ||
| + | |||
| + | In generale le fatture elettroniche firmate digitalmente vengono inviate nel formato **S/MIME mail processing**. Qualcuno in vena di originalità (ad esempio Enel Energia SpA) ha pensato bene di inviare in formato **CMS (Cryptographic Message Syntax)**. Si tratta di file con intestazione binaria senza una particolare // | ||
| + | |||
| + | Ecco la sintassi per estrarre il file XML contenuto nel messaggio firmato: | ||
| + | |||
| + | < | ||
| + | openssl cms -verify -inform DER -in input_file.p7m -nosigs -noverify -out output_file.xml | ||
| + | </ | ||
| + | |||
| + | Il formato **DER** oppure **PEM** va anche in questo caso scoperto per tentativi. | ||
| + | |||
| + | **Attenzione**: | ||
doc/appunti/software/pec_fattura_contraffatta.1573214483.txt.gz · Last modified: by niccolo
