.P7S

P7S File

PKCS #7 / S/MIME Digital Signature (smime.p7s)
Ask a question
QUICK ANSWER

A P7S file - usually named smime.p7s - is the digital signature attached to a signed email. It proves the sender's identity and that the message was not altered in transit. You normally do not open it yourself; an S/MIME-capable mail client (Outlook, Apple Mail, Thunderbird) reads it automatically and shows a "signed" badge. The file appears as a stray attachment only when your mail app cannot process S/MIME.

Developer: RSA Security (PKCS #7); standardized by IETF as CMS (Cryptographic Message Syntax) / S/MIME Category: Misc Files Open standard MIME: application/pkcs7-signature
OPENS ON Windows macOS Linux
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Jun 25, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the P7S file format?

A .p7s file is an email attachment secured with a digital signature. It does not contain the email body itself - it carries only the cryptographic signature and the signer's X.509 certificate, while the message body remains a separate, readable part of the email.

Digital signature guarantees that the email was not modified in transit and verifies that the sender is who they claim to be. It thus precludes the possibility of the message being tampered with by a third party if captured in transit.

Digital signature support

Email messages are digitally signed using PKCS #7 (Public-Key Cryptography Standard) technology, now standardized by the IETF as CMS (Cryptographic Message Syntax, RFC 5652). The .p7s file is stored in DER binary encoding or, less commonly, as PEM Base64 text starting with -----BEGIN PKCS7-----. Its MIME type is application/pkcs7-signature.

To verify such a message, a user needs to use an email client that supports this standard. Most email applications - including Microsoft Outlook, Apple Mail, and Mozilla Thunderbird - recognize digital signatures automatically. When an email client does not support S/MIME, the .p7s file appears as a visible attachment named smime.p7s, showing raw binary or Base64 data rather than readable text. To inspect its contents from the command line, use openssl pkcs7 -in smime.p7s -print_certs -noout.

A closely related format is .p7m, which wraps both the message and signature into a single signed or encrypted bundle.

Security & safety

RISK: LOW

A p7s file is itself harmless - it's signature/certificate data with no executable code, and it protects you by proving a message or document is authentic and unmodified. Real pitfalls are about interpretation, not infection: (1) 'signed' is not 'encrypted' - a signed email's body is still sent in the clear; (2) a valid signature proves the sender's identity and integrity, NOT that the content is trustworthy (a bad actor with a valid cert can sign a bad message); (3) verification is only as good as the certificate's trust chain, so a 'valid' badge from an untrusted/self-signed cert means little. Treat a surprise smime.p7s as a sign the email is legitimately signed, then judge the sender on the message itself.

Format details

in a nutshell
FULL NAMEPKCS #7 / S/MIME Digital Signature (smime.p7s)
DEVELOPERRSA Security (PKCS #7); standardized by IETF as CMS (Cryptographic Message Syntax) / S/MIMEsince PKCS #7 v1.5 (1993, RSA); S/MIME v2 RFC 2311 (1998); CMS RFC 5652 (2009)
CATEGORYMisc Files
MIME TYPEapplication/pkcs7-signature
TYPEDetached or wrapped cryptographic signature in PKCS#7/CMS (DER binary, sometimes PEM/Base64). Carries the signature and signer's certificate(s), not document content.
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
3082
ASCII
0·
A p7s is an ASN.1 PKCS#7/CMS SignedData object. Binary (DER) p7s files begin with 0x30 0x82 (SEQUENCE + 2-byte length); PEM-armored ones begin with the text "-----BEGIN PKCS7-----". In email it appears as the attachment "smime.p7s". It is a SIGNATURE, not a message body - opening it directly shows binary/Base64, not the email.

Programs that open P7S files

Windows3 apps
Mozilla Thunderbird Open-source Free S/MIME-capable mail client; open the signed message and Thunderbird verifies the signature and shows the certificate. Best free option.
OpenSSL Open-source To inspect/verify a document signature: 'openssl pkcs7 -inform DER -in smime.p7s -print_certs -text' (view), or 'openssl smime -verify' to validate against the signed file.
Microsoft Outlook Paid Open the signed email in Outlook (S/MIME-capable): it reads smime.p7s automatically and shows a red-ribbon 'signed' badge - no need to open the .p7s yourself.
macOS3 apps
Mozilla Thunderbird Open-source Free S/MIME client on macOS; verifies the signature and shows the signing certificate.
Apple Mail Built-in Open the signed email in Mail (with the sender's certificate trusted): it processes smime.p7s and marks the message as signed. Don't open the attachment directly.
OpenSSL (Terminal) Open-source Use 'openssl pkcs7'/'openssl smime -verify' in Terminal to inspect or verify a detached .p7s document signature.
Linux2 apps
Mozilla Thunderbird Open-source Open the signed email; Thunderbird verifies the S/MIME signature and displays the certificate.
OpenSSL Open-source Pre-installed on most distros: 'openssl pkcs7 -in smime.p7s -inform DER -print_certs' to view the signer cert; 'openssl smime -verify' to validate.

Technical details

deep spec
Full namePKCS #7 / S/MIME Digital Signature
MIME typeapplication/pkcs7-signature
Binary encodingDER (ASN.1 Distinguished Encoding Rules) - produces a compact binary file
Text-armored variantPEM: Base64 data between -----BEGIN PKCS7----- and -----END PKCS7----- markers
Magic bytes (DER)0x30 0x82 at offset 0 - ASN.1 SEQUENCE tag followed by a 2-byte length field
Data structureASN.1 SEQUENCE encapsulating a CMS SignedData object as defined in RFC 5652
Typical filename in emailsmime.p7s - the fixed name mandated by the S/MIME standard
Content carriedCryptographic signature value plus one or more embedded X.509 v3 signer certificates
Signature typeDetached - email body stays in a separate MIME part, readable without the .p7s file
Signing algorithmsRSA, DSA, ECDSA - determined by the key type in the signer's X.509 certificate
Digest algorithmsSHA-256, SHA-384, SHA-512; SHA-1 deprecated per RFC 8419 and RFC 9325
Certificate formatX.509 v3; the full certificate chain may be embedded to support offline validation
Governing specificationCMS RFC 5652, superseding the original PKCS #7 v1.5 and RFC 2630
Trust modelCA-based PKI - signature validity requires a certificate chain to a trusted Certificate Authority
ReleasedPKCS #7 v1.5 (1993, RSA); S/MIME v2 RFC 2311 (1998); CMS RFC 5652 (2009)
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

P7S conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with P7S files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about P7S files.

Frequently asked questions

What is a smime.p7s file in an email?
It's the digital signature of a signed email, in PKCS#7/S/MIME format. It proves the sender's identity and that the message wasn't altered. It does NOT contain the message text - you don't open it; an S/MIME-capable mail app reads it automatically.
How do I open a P7S file?
You normally don't open it directly. Read the original email in a client that supports S/MIME (Outlook, Apple Mail, Thunderbird) and it verifies the signature for you. To inspect a document's .p7s signature, use OpenSSL.
Why do I keep getting smime.p7s attachments?
Because the sender signs their email with S/MIME and your mail app (often webmail or a phone client) can't process the signature, so it shows up as a leftover attachment. Open the message in an S/MIME-capable client and the attachment disappears into a 'signed' badge.
Can I open a P7S file in Notepad or convert it to a readable document?
No useful result - a p7s is binary/Base64 signature data, not a document. There's nothing to convert to PDF or text. If you want the email's content, open the original message in an S/MIME mail client; the p7s only carries the signature and certificate.
Is smime.p7s safe / is it a virus?
It's safe - it's a standard signature attachment, not an executable, and it actually indicates the email was digitally signed. Just remember 'signed' means authentic, not necessarily safe content; judge the message itself.
What's the difference between .p7s and .p7m?
.p7s is a detached signature (the signed content stays separate). .p7m wraps the signed (and often the content) together inside the PKCS#7 envelope. Both are PKCS#7/CMS; .p7m embeds the data, .p7s sits alongside it.

References

1RFC 5652 - Cryptographic Message Syntax (CMS / PKCS#7)www.rfc-editor.org
2RFC 8551 - S/MIME 4.0 Message Specificationwww.rfc-editor.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.CRDOWNLOADChrome Partial Download File
4.PARTPartial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z