Examples of S/MIME Messages
RFC 4134
Network Working Group P. Hoffman, Ed.
Request for Comments: 4134 Internet Mail Consortium
Category: Informational July 2005
Examples of S/MIME Messages
Status of This Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
This document gives examples of message bodies formatted using
S/MIME. Specifically, it has examples of Cryptographic Message
Syntax (CMS) objects and S/MIME messages (including the MIME
formatting). It includes examples of many common CMS formats. The
purpose of this document is to help increase interoperability for
S/MIME and other protocols that rely on CMS.
Hoffman, Ed. Informational [Page 1]
RFC 4134 Examples of S/MIME Messages July 2005
Table of Contents
1. Introduction ................................................ 3
2. Constants Used in the Examples .............................. 3
2.1. Content of Documents .................................. 4
2.2. Private Keys .......................................... 4
2.3. Certificates .......................................... 13
2.4. CRLs .................................................. 33
3. Trivial Examples ............................................ 39
3.1. ContentInfo with Data Type, BER ....................... 39
3.2. ContentInfo with Data Type, DER ....................... 39
4. Signed-data ................................................. 39
4.1. Basic Signed Content, DSS ............................. 39
4.2. Basic Signed Content, RSA ............................. 44
4.3. Basic Signed Content, Detached Content ................ 49
4.4. Fancier Signed Content ................................ 53
4.5. All RSA Signed Message ................................ 68
4.6. Multiple Signers ...................................... 75
4.7. Signing Using SKI ..................................... 83
4.8. S/MIME multipart/signed Message ....................... 87
4.9. S/MIME application/pkcs7-mime Signed Message .......... 88
4.10. SignedData with Attributes ............................ 89
4.11. SignedData with Certificates Only ..................... 101
5. Enveloped-data .............................................. 109
5.1. Basic Encrypted Content, TripleDES and RSA ............ 109
5.2. Basic Encrypted Content, RC2/128 and RSA .............. 110
5.3. S/MIME application/pkcs7-mime Encrypted Message ....... 112
6. Digested-data ............................................... 112
7. Encrypted-data .............................................. 113
7.1. Simple EncryptedData .................................. 113
7.2. EncryptedData with Unprotected Attributes ............. 114
8. Security Considerations ..................................... 115
9. References .................................................. 115
9.1. Normative References .................................. 115
9.2. Informative References ................................ 115
A. Binaries of the Examples .................................... 116
A.1. How the Binaries and Extractor Works .................. 116
A.2. Example Extraction Program ............................ 116
B. Examples in Order of Appearance ............................. 118
C. Acknowledgements ............................................ 135
Hoffman, Ed. Informational [Page 2]
RFC 4134 Examples of S/MIME Messages July 2005
1. Introduction
The examples in this document show the structure and format of CMS
message bodies, as described in [CMS]. They are useful to
implementors who use protocols that rely on CMS, such as the S/MIME
message format protocol. There are also examples of simple S/MIME
messages [SMIME-MSG] (including the MIME headers).
Every example in this document has been checked by two different
implementors. This strongly indicates (but does not assure) that the
examples are correct. All CMS implementors must read the CMS
document carefully before implementing from it. No one should use
the examples in this document as stand-alone explanations of how to
create CMS message bodies.
This document explicitly does not attempt to cover many PKIX [PKIX]
examples. Documents with examples of that format may be forthcoming.
Also, note that [DVCS], which covers PKIX Data Validation and
Certification Server Protocols, has examples of formats for its
Show full document text