How to Open and Inspect a P7S File on Windows
Identify attached and detached P7S signatures, inspect signers, extract embedded content and interpret integrity and trust results separately.
On this page
Someone sends you contract.pdf.p7s, or a separate signature alongside a PDF, and Windows has no obvious application for it. Renaming the file to .pdf is not the solution. First identify whether the container includes a document or only the information needed to verify a separate document.
The workflow below uses P7S Universal Viewer on Windows. It separates document integrity from certificate trust, so read the individual results rather than treating one green indicator as a complete approval of a document or signer.
Try the workflow with a downloadable signed sample and its expected results.
From a signed PDF to a verified Excel export
Download the signed stock register and keep the reference PDF in a separate location for comparison. The register contains synthetic data. Its PDF bytes are enclosed in an attached CMS container signed with a self-signed demonstration certificate.
- Open the P7S file in P7S Universal Viewer. It should report Valid signature and Certificate trust: Untrusted / Unknown. The first result verifies the signed bytes. The second reflects Windows trust for the demonstration signer. Leave the trust settings unchanged.
- Use Save content as… and name the extracted file
stock-register.pdf. Compare its SHA-256 with the reference PDF using PowerShell. Both should have the hash below. - Open the extracted PDF in PDF Toolbox for Windows v1.1.0. Choose PDF to Excel / CSV, then Find tables. Review the one detected table (four rows including the header, three columns), confirm the review checkbox and export as Excel workbook (XLSX).
- Check cells A2, A3 and A4 in the workbook. They should contain
00123,00007and12345678901234567890as text. Compare against the reference XLSX.
Get-FileHash -Algorithm SHA256 .\stock-register.pdf
Expected SHA-256: f28c0e7af67ddadd4f593288b3f43738d27f865e94f9a7edb18775dacd4db8db


The signature covers the original PDF bytes inside the container. The Excel workbook is a new, unsigned output. See the PDF Toolbox worked example for the export controls and the comparison with an image-only scan.
Understand attached and detached signatures
The .p7s extension commonly refers to CMS/PKCS#7 signed data. The container carries signatures and associated information, often including certificates. In an attached container, the signed content is embedded. In a detached container, the content is absent and must be supplied separately. These structures are described in the CMS standard, RFC 5652.
For example, example.pdf.p7s might contain a PDF, but the filename alone does not prove that. Another sender might supply example.pdf and example.p7s as a pair. Keep both files unchanged until you understand the result. A certificate is not a substitute for missing original content.
If the sender provides only a detached signature, ask for the exact original document. A copy exported again from a word processor, printed to PDF or saved with different metadata can have different bytes despite looking identical.
Open the container without changing it
- Obtain the Windows installer or portable ZIP from the official product page.
- Read its first-run instructions and, if useful, verify the download.
- Launch the application and use Open P7S, or drop the P7S file onto the window.
- Read the result header. If the application needs detached content, choose Choose original… and supply the separate original.
- Inspect each signer, the detected content type and any warnings before extracting anything.
Opening a container for inspection does not mean you should execute or trust its contents. Treat unexpected files with the same caution you would apply to an ordinary attachment. Do not open private signed documents in an online viewer merely because Windows does not recognize the extension.
The screenshot is an illustration, not a sample file to verify. For your own result, keep the original container, select each signer and record the integrity and trust findings separately. Do not install a test certificate to make an untrusted result disappear.
Read the signer information separately
A container can have more than one signer. Review every signer rather than assuming the first result describes the whole container. The application can show certificate details that help you identify what was supplied, but certificate text is not independent proof that a person or organization is who they claim to be.
Keep these questions separate:
- Signature integrity: do the verified content bytes match this signature?
- Certificate trust: can the local Windows trust information establish an acceptable certificate chain?
- Validity dates: what dates does the certificate contain, and how are they interpreted by the application?
- Revocation: has an issuing authority revoked the certificate? P7S Universal Viewer does not check this.
- Legal validity: is the signature acceptable for your particular purpose? The viewer does not decide this.
A self-signed test certificate can have valid signature integrity while remaining untrusted. Conversely, recognizing a certificate does not excuse an invalid content signature. A signing-time assertion or an unverified timestamp token should not be treated as a trusted proof of when a document was signed.
Extract content when it exists
For an attached container, use Save content as… or Extract to folder. Choose a disposable output folder initially, and use a new filename if a file already exists. The application exports the embedded bytes rather than converting the document into another format.
The viewer detects the content type from its bytes and refuses silent overwrites. Choose a different destination if the output already exists; do not rename a signature container to pretend it is the extracted document.
After extraction, check the detected format and whether it is appropriate to open in another application. Extraction is not a malware scan or a sanitization step. A valid signature can cover content that is confidential, unwanted or unsafe to execute.
Detached signatures have no embedded original to recover. Supplying the correct original allows verification; it does not reconstruct a missing document. If the application reports missing detached content, changing extensions or trying arbitrary similarly named files will not fix that absence.
Preview is a convenience, not the verification result
Supported text, images and PDFs can be previewed within the viewer’s documented limits. PDF preview requires Microsoft Edge WebView2 Runtime separately; the core application does not depend on WebView2 for every operation.
No preview can mean the format is unsupported or a preview limit was reached. It does not necessarily mean signature integrity failed. Conversely, a readable preview does not make an invalid signature valid. Use the result details to distinguish these cases.
Normal document processing is local. The viewer uses local certificate trust stores with certificate downloads disabled and does not check revocation. Another application used to open the extracted document can have its own network behavior.
The viewer blocks HTTP/HTTPS document requests in its preview. That boundary does not apply to a separate application you use to open an extracted file.
Troubleshoot without losing the evidence
The original file looks right but verification fails. Ask the sender to resend the exact original bytes. Check whether your mail client, document editor or export workflow changed the file. Keep the first copy for comparison.
The signer is untrusted. Review the certificate chain and source. Do not install an unfamiliar certificate into Windows merely to make a warning disappear. Integrity and trust are different results.
Nothing can be extracted. Confirm that content is actually embedded. For detached signatures, request the original document instead of trying to recover one from the signature.
You need an authoritative acceptance decision. Preserve the P7S and original document, along with the viewer’s findings. Ask the receiving organization which verification process it requires; a local viewer cannot determine legal acceptance.
Report reproducible software problems through Support using synthetic samples rather than confidential documents.