Skip to content

Instantly share code, notes, and snippets.

@lparolari
Created May 11, 2019 07:31
Show Gist options
  • Save lparolari/5c541a85b0ce29347c116b093a9b2f55 to your computer and use it in GitHub Desktop.
Save lparolari/5c541a85b0ce29347c116b093a9b2f55 to your computer and use it in GitHub Desktop.
Decode your PEC attachments with a simple shell command.

PEC decoding without any client

Requirements

  • openssl installed on your computer;
  • a nice shell.

Usage

openssl smime -verify -in YOUR_FILE.EXT.p7m -inform der -noverify -signer Segnatura.xml -out textdata

This will create a textdata file that would contain the decoded message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment