P7M: Extract content

italia_p7m_extract · action · Italy (PEC/SDI) · Available · v1.0.0

Description

Extract the payload from a CAdES `.p7m` signed envelope (PKCS#7/CMS SignedData) — the format signed electronic invoices travel in to and from the Italian SdI and arrive via PEC. Minimal, defensive ASN.1 DER parser with zero external dependencies. Accepts base64 (as produced by PEC/IMAP attachment nodes), recognises re-encoded envelopes, and passes plain XML through with wasSigned:false. It does NOT verify the signature (legal verification belongs to the preservation system): it makes the content READABLE so parsers, databases and AI nodes downstream can automate it.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
content
Contenuto p7m (base64) o XML
expressionno
{{ $node.pec_in.json.attachments.0.contentBase64 }}
Il p7m in base64 (tipicamente l'allegato del nodo PEC/IMAP a monte). Vuoto = usa input.content del nodo precedente. XML in chiaro → pass-through con wasSigned:false.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • content
  • wasSigned
  • sizeBytes
  • contentIsXml

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-italia_p7m_extract-1",
  "defId": "italia_p7m_extract",
  "label": "P7M: Extract content",
  "config": {}
}

🔗 Related nodes in the same category

Ready to use P7M: Extract content?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes