draft-ietf-smime-examples-14.txt   draft-ietf-smime-examples-15.txt 
Internet Draft Editor: Paul Hoffman Internet Draft Editor: Paul Hoffman
draft-ietf-smime-examples-14.txt Internet Mail Consortium draft-ietf-smime-examples-15.txt Internet Mail Consortium
August 2, 2004 August 23, 2004
Expires in six months Expires in six months
Examples of S/MIME Messages Examples of S/MIME Messages
Status of this Memo Status of this Memo
By submitting this Internet-Draft, I certify that any applicable By submitting this Internet-Draft, I certify that any applicable
patent or other IPR claims of which I am aware have been disclosed, patent or other IPR claims of which I am aware have been disclosed,
or will be disclosed, and any of which I become aware will be or will be disclosed, and any of which I become aware will be
disclosed, in accordance with RFC 3668. disclosed, in accordance with RFC 3668.
skipping to change at line 112 skipping to change at line 112
carefully before implementing from it. No one should use the examples carefully before implementing from it. No one should use the examples
in this document as stand-alone explanations of how to create CMS in this document as stand-alone explanations of how to create CMS
message bodies. message bodies.
This document explicitly does not attempt to cover many PKIX [PKIX] This document explicitly does not attempt to cover many PKIX [PKIX]
examples. Documents with examples of that format may be forthcoming. examples. Documents with examples of that format may be forthcoming.
Also, note that [DVCS], which covers PKIX Data Validation and Also, note that [DVCS], which covers PKIX Data Validation and
Certification Server Protocols, has examples of formats for its Certification Server Protocols, has examples of formats for its
protocol. protocol.
This draft is being discussed on the 'ietf-smime-examples' mailing list.
To join the list, send a message to ietf-smime-examples-request@imc.org
with the single word "subscribe" in the body of the message. Also,
there is a Web site for the mailing list at
<http://www.imc.org/ietf-smime-examples/>. Note that S/MIME itself is
discussed in the IETF's S/MIME Working Group; see
<http://www.imc.org/ietf-smime/> for more information.
The examples shown here were created and validated by many different The examples shown here were created and validated by many different
people over a long period of time. people over a long period of time. Because of this, some of the dates
used in the examples are many years in the past. This, plus the fact
To contribute an implementation of an unimplemented example listed in that some of the certificates in the examples have very long lifespans,
this document, to verify that you got the same results as an example may cause problems in some test situations.
listed here, or to suggest a new example that should be listed, please
contact the document author at the address listed near the end of the
document.
2. Constants Used in the Examples 2. Constants Used in the Examples
This section defines the data used in the rest of the document. The names This section defines the data used in the rest of the document. The names
of the constants indicate their use. For example, AlicePrivDSSSign is the of the constants indicate their use. For example, AlicePrivDSSSign is the
private part of Alice's DSS signing key. private part of Alice's DSS signing key.
- Alice is the creator of the message bodies in this spec. - Alice is the creator of the message bodies in this document.
- Bob is the recipient of the messages. - Bob is the recipient of the messages.
- Carl is a CA. - Carl is a CA.
- Diane sometimes gets involved with these folks. - Diane sometimes gets involved with these folks.
- Erica also sometimes gets involved. - Erica also sometimes gets involved.
2.1 Content of documents 2.1 Content of documents
skipping to change at line 5467 skipping to change at line 5456
[SMIME-MSG] and [CMS]. [SMIME-MSG] and [CMS].
The Perl script in Appendix B writes to the user's local hard drive. A The Perl script in Appendix B writes to the user's local hard drive. A
malicious attacker could modify the Perl script in this document. Be malicious attacker could modify the Perl script in this document. Be
sure to read the Perl code carefully before executing it. sure to read the Perl code carefully before executing it.
A. References A. References
A.1 Normative References A.1 Normative References
[CMS] Cryptographic Message Syntax, RFC 2630. [CMS] Cryptographic Message Syntax (CMS), RFC 3369.
[PKIX] PKIX Certificate and CRL Profile, RFC 2459. [PKIX] PKIX Certificate and CRL Profile, RFC 3280.
[SMIME-MSG] S/MIME Version 3 Message Specification. RFC 2633. [SMIME-MSG] S/MIME Version 3 Message Specification. RFC 3851.
A.2 Informative References A.2 Informative References
[DVCS] PKIX Data Validation and Certification Server Protocols, [DVCS] PKIX Data Validation and Certification Server Protocols,
RFC 3029. RFC 3029.
B. Binaries of the Examples B. Binaries of the Examples
This section contains the binaries of the examples shown in the rest of This section contains the binaries of the examples shown in the rest of
the document. The binaries are stored in a modified Base64 format. the document. The binaries are stored in a modified Base64 format.
skipping to change at line 5598 skipping to change at line 5587
$Upper2 = ($ThisVal & 48); $Upper2 = ($ThisVal & 48);
$OutString .= chr($LeftOver + ($Upper2/16)); $OutString .= chr($LeftOver + ($Upper2/16));
$LeftOver = (($ThisVal - $Upper2) * 16); $LeftOver = (($ThisVal - $Upper2) * 16);
$NextPos = 4; $NextPos = 4;
} else { die "\$NextPos has an illegal value: $NextPos." } } else { die "\$NextPos has an illegal value: $NextPos." }
} }
} }
C. Examples in order of appearance C. Examples in order of appearance
>From Section 2.1 From Section 2.1
***ExContent.bin*** ***ExContent.bin***
|* Section 2.1 |* Section 2.1
|>ExContent.bin |>ExContent.bin
|VGhpcyBpcyBzb21lIHNhbXBsZSBjb250ZW50Lg== |VGhpcyBpcyBzb21lIHNhbXBsZSBjb250ZW50Lg==
|<ExContent.bin |<ExContent.bin
>From Section 2.2 From Section 2.2
***AlicePrivDSSSign.pri*** ***AlicePrivDSSSign.pri***
|* Example AlicePrivDSSSign.pri |* Example AlicePrivDSSSign.pri
|>AlicePrivDSSSign.pri |>AlicePrivDSSSign.pri
|MIIBSwIBADCCASsGByqGSM44BAEwggEeAoGBAIGNze2D6gqeOT7CSCij5EeT3Q7XqA7sU8 |MIIBSwIBADCCASsGByqGSM44BAEwggEeAoGBAIGNze2D6gqeOT7CSCij5EeT3Q7XqA7sU8
|WrhAhP/5Thc0h+DNbzREjR/p+vpKGJL+HZMMg23j+bv7dM3F9piuR10DcMkQiVm96nXvn8 |WrhAhP/5Thc0h+DNbzREjR/p+vpKGJL+HZMMg23j+bv7dM3F9piuR10DcMkQiVm96nXvn8
|9J8v3UOoi1TxP7AHCEdNXYjDw7Wz41UIddU5dhDEeL3/nbCElzfy5FEbteQJllzzflvbAh |9J8v3UOoi1TxP7AHCEdNXYjDw7Wz41UIddU5dhDEeL3/nbCElzfy5FEbteQJllzzflvbAh
|UA4kemGkVmuBPG2o+4NyErYov3k80CgYAmONAUiTKqOfs+bdlLWWpMdiM5BAI1XPLLGjDD |UA4kemGkVmuBPG2o+4NyErYov3k80CgYAmONAUiTKqOfs+bdlLWWpMdiM5BAI1XPLLGjDD
|HlBd3ZtZ4s2qBT1YwHuiNrhuB699ikIlp/R1z0oIXks+kPht6pzJIYo7dhTpzi5dowfNI4 |HlBd3ZtZ4s2qBT1YwHuiNrhuB699ikIlp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
|xaxsv+U= |xaxsv+U=
|<DianePrivRSASignEncrypt.pri |<DianePrivRSASignEncrypt.pri
>From Section 2.3 From Section 2.3
***AliceDSSSignByCarlNoInherit.cer*** ***AliceDSSSignByCarlNoInherit.cer***
|* Example AliceDSSSignByCarlNoInherit.cer |* Example AliceDSSSignByCarlNoInherit.cer
|>AliceDSSSignByCarlNoInherit.cer |>AliceDSSSignByCarlNoInherit.cer
|MIIC3DCCApugAwIBAgICAMgwCQYHKoZIzjgEAzASMRAwDgYDVQQDEwdDYXJsRFNTMB4XDT |MIIC3DCCApugAwIBAgICAMgwCQYHKoZIzjgEAzASMRAwDgYDVQQDEwdDYXJsRFNTMB4XDT
|k5MDgxNzAxMTA0OVoXDTM5MTIzMTIzNTk1OVowEzERMA8GA1UEAxMIQWxpY2VEU1MwggG2 |k5MDgxNzAxMTA0OVoXDTM5MTIzMTIzNTk1OVowEzERMA8GA1UEAxMIQWxpY2VEU1MwggG2
|MIIBKwYHKoZIzjgEATCCAR4CgYEAgY3N7YPqCp45PsJIKKPkR5PdDteoDuxTxauECE//lO |MIIBKwYHKoZIzjgEATCCAR4CgYEAgY3N7YPqCp45PsJIKKPkR5PdDteoDuxTxauECE//lO
|FzSH4M1vNESNH+n6+koYkv4dkwyDbeP5u/t0zcX2mK5HXQNwyRCJWb3qde+fz0ny/dQ6iL |FzSH4M1vNESNH+n6+koYkv4dkwyDbeP5u/t0zcX2mK5HXQNwyRCJWb3qde+fz0ny/dQ6iL
|VPE/sAcIR01diMPDtbPjVQh11Tl2EMR4vf+dsISXN/LkURu15AmWXPN+W9sCFQDiR6YaRW |VPE/sAcIR01diMPDtbPjVQh11Tl2EMR4vf+dsISXN/LkURu15AmWXPN+W9sCFQDiR6YaRW
skipping to change at line 5848 skipping to change at line 5837
|rP6ny7omL68OYyOlP/sZJaF/Qg4ZkkggrQ9nz7RMqLJwbxfiYDqXadz+ygLHCW8oNC9tS3 |rP6ny7omL68OYyOlP/sZJaF/Qg4ZkkggrQ9nz7RMqLJwbxfiYDqXadz+ygLHCW8oNC9tS3
|KAq7+L9KTBk/B9ugwWAet35n996xw2BJrEXX+MbvCDchk0fu8HM1crACxPMRw15H5Qq3g/ |KAq7+L9KTBk/B9ugwWAet35n996xw2BJrEXX+MbvCDchk0fu8HM1crACxPMRw15H5Qq3g/
|HbdGlki0QdlV3NKMCFAgMBAAGjgYEwfzAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIF |HbdGlki0QdlV3NKMCFAgMBAAGjgYEwfzAMBgNVHRMBAf8EAjAAMA4GA1UdDwEB/wQEAwIF
|4DAfBgNVHSMEGDAWgBTp4JAnrHggeprTTPJCN04irp44uzAdBgNVHQ4EFgQUjPPLdQ6NMf |4DAfBgNVHSMEGDAWgBTp4JAnrHggeprTTPJCN04irp44uzAdBgNVHQ4EFgQUjPPLdQ6NMf
|bUKdpEknW4/u1POQwwHwYDVR0RBBgwFoEURGlhbmVSU0FAZXhhbXBsZS5jb20wDQYJKoZI |bUKdpEknW4/u1POQwwHwYDVR0RBBgwFoEURGlhbmVSU0FAZXhhbXBsZS5jb20wDQYJKoZI
|hvcNAQEFBQADgYEAfaYstXhC1nnzMf72QsoPEweSCRvgb7CRGPa/SvvMY3n7gb/dl8eQa8 |hvcNAQEFBQADgYEAfaYstXhC1nnzMf72QsoPEweSCRvgb7CRGPa/SvvMY3n7gb/dl8eQa8
|sKNytBagOYxRs+MshFK4YBnBziNu8WwRqSuL5i+1M+SUcLxLnkK1imBoPwsqe7hX7VxtrO |sKNytBagOYxRs+MshFK4YBnBziNu8WwRqSuL5i+1M+SUcLxLnkK1imBoPwsqe7hX7VxtrO
|nHsxctei6kGrasDdH7kURBjPhFdm6MXmuNwtsx8bKEM2dXo= |nHsxctei6kGrasDdH7kURBjPhFdm6MXmuNwtsx8bKEM2dXo=
|<DianeRSASignByCarl.cer |<DianeRSASignByCarl.cer
>From Section 2.4 From Section 2.4
***CarlDSSCRLForAll.crl*** ***CarlDSSCRLForAll.crl***
|* Example CarlDSSCRLForAll.crl |* Example CarlDSSCRLForAll.crl
|>CarlDSSCRLForAll.crl |>CarlDSSCRLForAll.crl
|MIHYMIGZMAkGByqGSM44BAMwEjEQMA4GA1UEAxMHQ2FybERTUxcNOTkwODI3MDcwMDAwWj |MIHYMIGZMAkGByqGSM44BAMwEjEQMA4GA1UEAxMHQ2FybERTUxcNOTkwODI3MDcwMDAwWj
|BpMBMCAgDIFw05OTA4MjIwNzAwMDBaMBMCAgDJFw05OTA4MjIwNzAwMDBaMBMCAgDTFw05 |BpMBMCAgDIFw05OTA4MjIwNzAwMDBaMBMCAgDJFw05OTA4MjIwNzAwMDBaMBMCAgDTFw05
|OTA4MjIwNzAwMDBaMBMCAgDSFw05OTA4MjIwNzAwMDBaMBMCAgDUFw05OTA4MjQwNzAwMD |OTA4MjIwNzAwMDBaMBMCAgDSFw05OTA4MjIwNzAwMDBaMBMCAgDUFw05OTA4MjQwNzAwMD
|BaMAkGByqGSM44BAMDLwAwLAIUfmVSdjP+NHMX0feW+aDU2G1cfT0CFAJ6W7fVWxjBz4fv |BaMAkGByqGSM44BAMDLwAwLAIUfmVSdjP+NHMX0feW+aDU2G1cfT0CFAJ6W7fVWxjBz4fv
|ftok8yqDnDWh |ftok8yqDnDWh
skipping to change at line 6397 skipping to change at line 6386
majority of the examples in this document, and/or correct examples majority of the examples in this document, and/or correct examples
during the early drafts of this document. Additional examples came from during the early drafts of this document. Additional examples came from
many people, including Rob Colestock and Paul Hoffman. Additional many people, including Rob Colestock and Paul Hoffman. Additional
testing came from Holger Ebel and Russ Housley. testing came from Holger Ebel and Russ Housley.
The examples are displayed with a modified version of Peter Gutmann's The examples are displayed with a modified version of Peter Gutmann's
"dumpasn1" program. Peter and Jim Schaad and Blake Ramsdell have been "dumpasn1" program. Peter and Jim Schaad and Blake Ramsdell have been
updating the program based on input from the process of writing this updating the program based on input from the process of writing this
draft. draft.
E. Differences between -13 and -14 E. Differences between -14 and -15
[[ To be removed when published as an RFC ]] [[ To be removed when published as an RFC ]]
Fixed the binary for example 4.9. Fixed the obsolete references.
Fully replaced example 5.3 and its binary. Removed text from Section 1 about the mailing list and contributing
new examples.
Added a note in Section 1 about the old dates and long cert lifespans in some
of the examples.
Changed "spec" to "document" in Section 2.
F. Editor's Address F. Editor's Address
Paul Hoffman Paul Hoffman
Internet Mail Consortium Internet Mail Consortium
127 Segre Place 127 Segre Place
Santa Cruz, CA 95060 USA Santa Cruz, CA 95060 USA
phoffman@imc.org phoffman@imc.org
Full Copyright Statement Full Copyright Statement
 End of changes. 

This html diff was produced by rfcdiff 1.23, available from http://www.levkowetz.com/ietf/tools/rfcdiff/