How to open a P7M file on Mac and iPhone
macOS and iOS don’t open .p7m files on their own. Here are your options, from the simplest to the most technical.
Guides
Mac and iPhone don’t have a default app for .p7m files. If you double-click one on a Mac, nothing may happen or an app may open and show unreadable characters. The document is inside a signature envelope. To read it, extract the document first.
On Mac
1. In your browser
Open this site in Safari, Chrome or Firefox and drop the .p7m file onto the page. You’ll see the formatted invoice or PDF, along with the signer’s details. The file stays on your device. From there you can download the original document or save the invoice as a PDF.
2. With digital signature software
Major digital certificate authorities offer macOS apps that open signed files and verify their signatures. Examples include InfoCert’s GoSign and Aruba’s ArubaSign. Use one of these if you need to verify the signature for legal purposes. This site displays signer details only.
3. In Terminal
macOS includes the openssl command, which can extract the document from the envelope. The -noverify option skips verification of the signer’s certificate, but the command still checks the signature itself. Open Terminal in the folder containing the file and run the following command.
openssl smime -verify -noverify -inform DER -in fattura.xml.p7m -out fattura.xml
Replace the filenames with your own. If the command fails, the file may be encoded in Base64 instead of binary. In that case, the browser is easier to use because the viewer supports both encodings.
On iPhone and iPad
1. Save the file to Files
In Mail, touch and hold the .p7m attachment and choose Save to Files. If you received it in another app, tap Share, then Save to Files.
2. Open it in your browser
Open this site in Safari, tap Choose files, then Browse and select the file you saved. The invoice or document appears on the page.
3. Save or print
For an invoice, tap Print or save as PDF. On the print screen, tap Share and choose Save to Files. For a PDF inside the P7M, tap Download PDF.
On Android and Windows
The browser method works the same way on Android and Windows. Digital certificate authorities also offer Windows versions of their signature software.