home *** CD-ROM | disk | FTP | other *** search
/ Internet Core Protocols / Oreilly-InternetCoreProtocols.iso / RFCs / rfc2633.txt < prev    next >
Encoding:
Text File  |  1999-10-14  |  68.0 KB  |  1,796 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                               B. Ramsdell, Editor
  8. Request for Comments: 2633                                    Worldtalk
  9. Category: Standards Track                                     June 1999
  10.  
  11.  
  12.                  S/MIME Version 3 Message Specification
  13.  
  14. Status of this Memo
  15.  
  16.    This document specifies an Internet standards track protocol for the
  17.    Internet community, and requests discussion and suggestions for
  18.    improvements.  Please refer to the current edition of the "Internet
  19.    Official Protocol Standards" (STD 1) for the standardization state
  20.    and status of this protocol.  Distribution of this memo is unlimited.
  21.  
  22. Copyright Notice
  23.  
  24.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  25.  
  26. 1. Introduction
  27.  
  28.    S/MIME (Secure/Multipurpose Internet Mail Extensions) provides a
  29.    consistent way to send and receive secure MIME data. Based on the
  30.    popular Internet MIME standard, S/MIME provides the following
  31.    cryptographic security services for electronic messaging
  32.    applications:  authentication, message integrity and non-repudiation
  33.    of origin (using digital signatures) and privacy and data security
  34.    (using encryption).
  35.  
  36.    S/MIME can be used by traditional mail user agents (MUAs) to add
  37.    cryptographic security services to mail that is sent, and to
  38.    interpret cryptographic security services in mail that is received.
  39.    However, S/MIME is not restricted to mail; it can be used with any
  40.    transport mechanism that transports MIME data, such as HTTP. As such,
  41.    S/MIME takes advantage of the object-based features of MIME and
  42.    allows secure messages to be exchanged in mixed-transport systems.
  43.  
  44.    Further, S/MIME can be used in automated message transfer agents that
  45.    use cryptographic security services that do not require any human
  46.    intervention, such as the signing of software-generated documents and
  47.    the encryption of FAX messages sent over the Internet.
  48.  
  49. 1.1 Specification Overview
  50.  
  51.    This document describes a protocol for adding cryptographic signature
  52.    and encryption services to MIME data. The MIME standard [MIME-SPEC]
  53.    provides a general structure for the content type of Internet
  54.    messages and allows extensions for new content type applications.
  55.  
  56.  
  57.  
  58. Ramsdell                    Standards Track                     [Page 1]
  59.  
  60. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  61.  
  62.  
  63.    This memo defines how to create a MIME body part that has been
  64.    cryptographically enhanced according to CMS [CMS], which is derived
  65.    from PKCS #7 [PKCS-7]. This memo also defines the application/pkcs7-
  66.    mime MIME type that can be used to transport those body parts.
  67.  
  68.    This memo also discusses how to use the multipart/signed MIME type
  69.    defined in [MIME-SECURE] to transport S/MIME signed messages. This
  70.    memo also defines the application/pkcs7-signature MIME type, which is
  71.    also used to transport S/MIME signed messages.
  72.  
  73.    In order to create S/MIME messages, an S/MIME agent has to follow
  74.    specifications in this memo, as well as the specifications listed in
  75.    the Cryptographic Message Syntax [CMS].
  76.  
  77.    Throughout this memo, there are requirements and recommendations made
  78.    for how receiving agents handle incoming messages. There are separate
  79.    requirements and recommendations for how sending agents create
  80.    outgoing messages. In general, the best strategy is to "be liberal in
  81.    what you receive and conservative in what you send". Most of the
  82.    requirements are placed on the handling of incoming messages while
  83.    the recommendations are mostly on the creation of outgoing messages.
  84.  
  85.    The separation for requirements on receiving agents and sending
  86.    agents also derives from the likelihood that there will be S/MIME
  87.    systems that involve software other than traditional Internet mail
  88.    clients.  S/MIME can be used with any system that transports MIME
  89.    data. An automated process that sends an encrypted message might not
  90.    be able to receive an encrypted message at all, for example. Thus,
  91.    the requirements and recommendations for the two types of agents are
  92.    listed separately when appropriate.
  93.  
  94. 1.2 Terminology
  95.  
  96.    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  97.    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
  98.    document are to be interpreted as described in [MUSTSHOULD].
  99.  
  100. 1.3 Definitions
  101.  
  102.    For the purposes of this memo, the following definitions apply.
  103.  
  104.    ASN.1: Abstract Syntax Notation One, as defined in CCITT X.208.
  105.  
  106.    BER: Basic Encoding Rules for ASN.1, as defined in CCITT X.209.
  107.  
  108.    Certificate: A type that binds an entity's distinguished name to a
  109.    public key with a digital signature.
  110.  
  111.  
  112.  
  113.  
  114. Ramsdell                    Standards Track                     [Page 2]
  115.  
  116. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  117.  
  118.  
  119.    DER: Distinguished Encoding Rules for ASN.1, as defined in CCITT
  120.    X.509.
  121.  
  122.    7-bit data: Text data with lines less than 998 characters long, where
  123.    none of the characters have the 8th bit set, and there are no NULL
  124.    characters. <CR> and <LF> occur only as part of a <CR><LF> end of
  125.    line delimiter.
  126.  
  127.    8-bit data: Text data with lines less than 998 characters, and where
  128.    none of the characters are NULL characters. <CR> and <LF> occur only
  129.    as part of a <CR><LF> end of line delimiter.
  130.  
  131.    Binary data: Arbitrary data.
  132.  
  133.    Transfer Encoding: A reversible transformation made on data so 8-bit
  134.    or binary data may be sent via a channel that only transmits 7-bit
  135.    data.
  136.  
  137.    Receiving agent: software that interprets and processes S/MIME CMS
  138.    objects, MIME body parts that contain CMS objects, or both.
  139.  
  140.    Sending agent: software that creates S/MIME CMS objects, MIME body
  141.    parts that contain CMS objects, or both.
  142.  
  143.    S/MIME agent: user software that is a receiving agent, a sending
  144.    agent, or both.
  145.  
  146. 1.4 Compatibility with Prior Practice of S/MIME
  147.  
  148.    S/MIME version 3 agents should attempt to have the greatest
  149.    interoperability possible with S/MIME version 2 agents. S/MIME
  150.    version 2 is described in RFC 2311 through RFC 2315, inclusive. RFC
  151.    2311 also has historical information about the development of S/MIME.
  152.  
  153. 2. CMS Options
  154.  
  155.    CMS allows for a wide variety of options in content and algorithm
  156.    support. This section puts forth a number of support requirements and
  157.    recommendations in order to achieve a base level of interoperability
  158.    among all S/MIME implementations. [CMS] provides additional details
  159.    regarding the use of the cryptographic algorithms.
  160.  
  161. 2.1 DigestAlgorithmIdentifier
  162.  
  163.    Sending and receiving agents MUST support SHA-1 [SHA1].  Receiving
  164.    agents SHOULD support MD5 [MD5] for the purpose of providing backward
  165.    compatibility with MD5-digested S/MIME v2 SignedData objects.
  166.  
  167.  
  168.  
  169.  
  170. Ramsdell                    Standards Track                     [Page 3]
  171.  
  172. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  173.  
  174.  
  175. 2.2 SignatureAlgorithmIdentifier
  176.  
  177.    Sending and receiving agents MUST support id-dsa defined in [DSS].
  178.    The algorithm parameters MUST be absent (not encoded as NULL).
  179.  
  180.    Receiving agents SHOULD support rsaEncryption, defined in [PKCS-1].
  181.  
  182.    Sending agents SHOULD support rsaEncryption. Outgoing messages are
  183.    signed with a user's private key. The size of the private key is
  184.    determined during key generation.
  185.  
  186.    Note that S/MIME v2 clients are only capable of verifying digital
  187.    signatures using the rsaEncryption algorithm.
  188.  
  189. 2.3 KeyEncryptionAlgorithmIdentifier
  190.  
  191.    Sending and receiving agents MUST support Diffie-Hellman defined in
  192.    [DH].
  193.  
  194.    Receiving agents SHOULD support rsaEncryption. Incoming encrypted
  195.    messages contain symmetric keys which are to be decrypted with a
  196.    user's private key. The size of the private key is determined during
  197.    key generation.
  198.  
  199.    Sending agents SHOULD support rsaEncryption.
  200.  
  201.    Note that S/MIME v2 clients are only capable of decrypting content
  202.    encryption keys using the rsaEncryption algorithm.
  203.  
  204. 2.4 General Syntax
  205.  
  206.    CMS defines multiple content types.  Of these, only the Data,
  207.    SignedData, and EnvelopedData content types are currently used for
  208.    S/MIME.
  209.  
  210. 2.4.1 Data Content Type
  211.  
  212.    Sending agents MUST use the id-data content type identifier to
  213.    indicate the message content which has had security services applied
  214.    to it. For example, when applying a digital signature to MIME data,
  215.    the CMS signedData encapContentInfo eContentType MUST include the
  216.    id-data object identifier and the MIME content MUST be stored in the
  217.    SignedData encapContentInfo eContent OCTET STRING (unless the sending
  218.    agent is using multipart/signed, in which case the eContent is
  219.    absent, per section 3.4.3 of this document).  As another example,
  220.    when applying encryption to MIME data, the CMS EnvelopedData
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Ramsdell                    Standards Track                     [Page 4]
  227.  
  228. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  229.  
  230.  
  231.    encryptedContentInfo ContentType MUST include the id-data object
  232.    identifier and the encrypted MIME content MUST be stored in the
  233.    envelopedData encryptedContentInfo encryptedContent OCTET STRING.
  234.  
  235. 2.4.2 SignedData Content Type
  236.  
  237.    Sending agents MUST use the signedData content type to apply a
  238.    digital signature to a message or, in a degenerate case where there
  239.    is no signature information, to convey certificates.
  240.  
  241. 2.4.3 EnvelopedData Content Type
  242.  
  243.    This content type is used to apply privacy protection to a message. A
  244.    sender needs to have access to a public key for each intended message
  245.    recipient to use this service. This content type does not provide
  246.    authentication.
  247.  
  248. 2.5 Attribute SignerInfo Type
  249.  
  250.    The SignerInfo type allows the inclusion of unsigned and signed
  251.    attributes to be included along with a signature.
  252.  
  253.    Receiving agents MUST be able to handle zero or one instance of each
  254.    of the signed attributes listed here. Sending agents SHOULD generate
  255.    one instance of each of the following signed attributes in each
  256.    S/MIME message:
  257.  
  258.    - signingTime (section 2.5.1 in this document)
  259.    - sMIMECapabilities (section 2.5.2 in this document)
  260.    - sMIMEEncryptionKeyPreference (section 2.5.3 in this document)
  261.  
  262.    Further, receiving agents SHOULD be able to handle zero or one
  263.    instance in the signed attributes of the signingCertificate attribute
  264.    (section 5 in [ESS]).
  265.  
  266.    Sending agents SHOULD generate one instance of the signingCertificate
  267.    signed attribute in each S/MIME message.
  268.  
  269.    Additional attributes and values for these attributes may be defined
  270.    in the future. Receiving agents SHOULD handle attributes or values
  271.    that it does not recognize in a graceful manner.
  272.  
  273.    Sending agents that include signed attributes that are not listed
  274.    here SHOULD display those attributes to the user, so that the user is
  275.    aware of all of the data being signed.
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Ramsdell                    Standards Track                     [Page 5]
  283.  
  284. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  285.  
  286.  
  287. 2.5.1 Signing-Time Attribute
  288.  
  289.    The signing-time attribute is used to convey the time that a message
  290.    was signed. Until there are trusted timestamping services, the time
  291.    of signing will most likely be created by a message originator and
  292.    therefore is only as trustworthy as the originator.
  293.  
  294.    Sending agents MUST encode signing time through the year 2049 as
  295.    UTCTime; signing times in 2050 or later MUST be encoded as
  296.    GeneralizedTime. When the UTCTime CHOICE is used, S/MIME agents MUST
  297.    interpret the year field (YY) as follows:
  298.  
  299.    if YY is greater than or equal to 50, the year is interpreted as
  300.    19YY; if YY is less than 50, the year is interpreted as 20YY.
  301.  
  302. 2.5.2 SMIMECapabilities Attribute
  303.  
  304.    The SMIMECapabilities attribute includes signature algorithms (such
  305.    as "sha1WithRSAEncryption"), symmetric algorithms (such as "DES-
  306.    EDE3-CBC"), and key encipherment algorithms (such as
  307.    "rsaEncryption"). It also includes a non-algorithm capability which
  308.    is the preference for signedData. The SMIMECapabilities were designed
  309.    to be flexible and extensible so that, in the future, a means of
  310.    identifying other capabilities and preferences such as certificates
  311.    can be added in a way that will not cause current clients to break.
  312.  
  313.    If present, the SMIMECapabilities attribute MUST be a
  314.    SignedAttribute; it MUST NOT be an UnsignedAttribute. CMS defines
  315.    SignedAttributes as a SET OF Attribute. The SignedAttributes in a
  316.    signerInfo MUST NOT include multiple instances of the
  317.    SMIMECapabilities attribute. CMS defines the ASN.1 syntax for
  318.    Attribute to include attrValues SET OF AttributeValue. A
  319.    SMIMECapabilities attribute MUST only include a single instance of
  320.    AttributeValue.  There MUST NOT be zero or multiple instances of
  321.    AttributeValue present in the attrValues SET OF AttributeValue.
  322.  
  323.    The semantics of the SMIMECapabilites attribute specify a partial
  324.    list as to what the client announcing the SMIMECapabilites can
  325.    support. A client does not have to list every capability it supports,
  326.    and probably should not list all its capabilities so that the
  327.    capabilities list doesn't get too long. In an SMIMECapabilities
  328.    attribute, the OIDs are listed in order of their preference, but
  329.    SHOULD be logically separated along the lines of their categories
  330.    (signature algorithms, symmetric algorithms, key encipherment
  331.    algorithms, etc.)
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Ramsdell                    Standards Track                     [Page 6]
  339.  
  340. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  341.  
  342.  
  343.    The structure of the SMIMECapabilities attribute is to facilitate
  344.    simple table lookups and binary comparisons in order to determine
  345.    matches. For instance, the DER-encoding for the SMIMECapability for
  346.    DES EDE3 CBC MUST be identically encoded regardless of the
  347.    implementation.
  348.  
  349.    In the case of symmetric algorithms, the associated parameters for
  350.    the OID MUST specify all of the parameters necessary to differentiate
  351.    between two instances of the same algorithm. For instance, the number
  352.    of rounds and block size for RC5 must be specified in addition to the
  353.    key length.
  354.  
  355.    There is a list of OIDs (OIDs Used with S/MIME) that is centrally
  356.    maintained and is separate from this memo. The list of OIDs is
  357.    maintained by the Internet Mail Consortium at
  358.    <http://www.imc.org/ietf-smime/oids.html>. Note that all OIDs
  359.    associated with the MUST and SHOULD implement algorithms are included
  360.    in section A of this document.
  361.  
  362.    The OIDs that correspond to algorithms SHOULD use the same OID as the
  363.    actual algorithm, except in the case where the algorithm usage is
  364.    ambiguous from the OID. For instance, in an earlier draft,
  365.    rsaEncryption was ambiguous because it could refer to either a
  366.    signature algorithm or a key encipherment algorithm. In the event
  367.    that an OID is ambiguous, it needs to be arbitrated by the maintainer
  368.    of the registered SMIMECapabilities list as to which type of
  369.    algorithm will use the OID, and a new OID MUST be allocated under the
  370.    smimeCapabilities OID to satisfy the other use of the OID.
  371.  
  372.    The registered SMIMECapabilities list specifies the parameters for
  373.    OIDs that need them, most notably key lengths in the case of
  374.    variable-length symmetric ciphers. In the event that there are no
  375.    differentiating parameters for a particular OID, the parameters MUST
  376.    be omitted, and MUST NOT be encoded as NULL.
  377.  
  378.    Additional values for the SMIMECapabilities attribute may be defined
  379.    in the future. Receiving agents MUST handle a SMIMECapabilities
  380.    object that has values that it does not recognize in a graceful
  381.    manner.
  382.  
  383. 2.5.3 Encryption Key Preference Attribute
  384.  
  385.    The encryption key preference attribute allows the signer to
  386.    unambiguously describe which of the signer's certificates has the
  387.    signer's preferred encryption key. This attribute is designed to
  388.    enhance behavior for interoperating with those clients which use
  389.    separate keys for encryption and signing. This attribute is used to
  390.  
  391.  
  392.  
  393.  
  394. Ramsdell                    Standards Track                     [Page 7]
  395.  
  396. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  397.  
  398.  
  399.    convey to anyone viewing the attribute which of the listed
  400.    certificates should be used for encrypting a session key for future
  401.    encrypted messages.
  402.  
  403.    If present, the SMIMEEncryptionKeyPreference attribute MUST be a
  404.    SignedAttribute; it MUST NOT be an UnsignedAttribute. CMS defines
  405.    SignedAttributes as a SET OF Attribute. The SignedAttributes in a
  406.    signerInfo MUST NOT include multiple instances of the
  407.    SMIMEEncryptionKeyPreference attribute.  CMS defines the ASN.1 syntax
  408.    for Attribute to include attrValues SET OF AttributeValue. A
  409.    SMIMEEncryptionKeyPreference attribute MUST only include a single
  410.    instance of AttributeValue.  There MUST NOT be zero or multiple
  411.    instances of AttributeValue present in the attrValues SET OF
  412.    AttributeValue.
  413.  
  414.    The sending agent SHOULD include the referenced certificate in the
  415.    set of certificates included in the signed message if this attribute
  416.    is used.  The certificate may be omitted if it has been previously
  417.    made available to the receiving agent.  Sending agents SHOULD use
  418.    this attribute if the commonly used or preferred encryption
  419.    certificate is not the same as the certificate used to sign the
  420.    message.
  421.  
  422.    Receiving agents SHOULD store the preference data if the signature on
  423.    the message is valid and the signing time is greater than the
  424.    currently stored value.  (As with the SMIMECapabilities, the clock
  425.    skew should be checked and the data not used if the skew is too
  426.    great.)  Receiving agents SHOULD respect the sender's encryption key
  427.    preference attribute if possible.  This however represents only a
  428.    preference and the receiving agent may use any certificate in
  429.    replying to the sender that is valid.
  430.  
  431. 2.5.3.1 Selection of Recipient Key Management Certificate
  432.  
  433.    In order to determine the key management certificate to be used when
  434.    sending a future CMS envelopedData message for a particular
  435.    recipient, the following steps SHOULD be followed:
  436.  
  437.     - If an SMIMEEncryptionKeyPreference attribute is found in a
  438.    signedData object received from the desired recipient, this
  439.    identifies the X.509 certificate that should be used as the X.509
  440.    key management certificate for the recipient.
  441.  
  442.    - If an SMIMEEncryptionKeyPreference attribute is not found in a
  443.    signedData object received from the desired recipient, the set of
  444.    X.509 certificates should be searched for a X.509 certificate with
  445.    the same subject name as the signing X.509 certificate which can
  446.    be used for key management.
  447.  
  448.  
  449.  
  450. Ramsdell                    Standards Track                     [Page 8]
  451.  
  452. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  453.  
  454.  
  455.    - Or use some other method of determining the user's key management
  456.    key. If a X.509 key management certificate is not found, then
  457.    encryption cannot be done with the signer of the message. If multiple
  458.    X.509 key management certificates are found, the S/MIME agent can
  459.    make an arbitrary choice between them.
  460.  
  461. 2.6 SignerIdentifier SignerInfo Type
  462.  
  463.    S/MIME v3 requires the use of SignerInfo version 1, that is the
  464.    issuerAndSerialNumber CHOICE MUST be used for SignerIdentifier.
  465.  
  466. 2.7 ContentEncryptionAlgorithmIdentifier
  467.  
  468.    Sending and receiving agents MUST support encryption and decryption
  469.    with DES EDE3 CBC, hereinafter called "tripleDES" [3DES] [DES].
  470.    Receiving agents SHOULD support encryption and decryption using the
  471.    RC2 [RC2] or a compatible algorithm at a key size of 40 bits,
  472.    hereinafter called "RC2/40".
  473.  
  474. 2.7.1 Deciding Which Encryption Method To Use
  475.  
  476.    When a sending agent creates an encrypted message, it has to decide
  477.    which type of encryption to use. The decision process involves using
  478.    information garnered from the capabilities lists included in messages
  479.    received from the recipient, as well as out-of-band information such
  480.    as private agreements, user preferences, legal restrictions, and so
  481.    on.
  482.  
  483.    Section 2.5 defines a method by which a sending agent can optionally
  484.    announce, among other things, its decrypting capabilities in its
  485.    order of preference. The following method for processing and
  486.    remembering the encryption capabilities attribute in incoming signed
  487.    messages SHOULD be used.
  488.  
  489.    -  If the receiving agent has not yet created a list of capabilities
  490.       for the sender's public key, then, after verifying the signature
  491.       on the incoming message and checking the timestamp, the receiving
  492.       agent SHOULD create a new list containing at least the signing
  493.       time and the symmetric capabilities.
  494.  
  495.     - If such a list already exists, the receiving agent SHOULD verify
  496.       that the signing time in the incoming message is greater than
  497.       the signing time stored in the list and that the signature is
  498.       valid. If so, the receiving agent SHOULD update both the signing
  499.       time and capabilities in the list. Values of the signing time that
  500.       lie far in the future (that is, a greater discrepancy than any
  501.       reasonable clock skew), or a capabilities list in messages whose
  502.       signature could not be verified, MUST NOT be accepted.
  503.  
  504.  
  505.  
  506. Ramsdell                    Standards Track                     [Page 9]
  507.  
  508. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  509.  
  510.  
  511.    The list of capabilities SHOULD be stored for future use in creating
  512.    messages.
  513.  
  514.    Before sending a message, the sending agent MUST decide whether it is
  515.    willing to use weak encryption for the particular data in the
  516.    message.  If the sending agent decides that weak encryption is
  517.    unacceptable for this data, then the sending agent MUST NOT use a
  518.    weak algorithm such as RC2/40.  The decision to use or not use weak
  519.    encryption overrides any other decision in this section about which
  520.    encryption algorithm to use.
  521.  
  522.    Sections 2.7.2.1 through 2.7.2.4 describe the decisions a sending
  523.    agent SHOULD use in deciding which type of encryption should be
  524.    applied to a message.  These rules are ordered, so the sending agent
  525.    SHOULD make its decision in the order given.
  526.  
  527. 2.7.1.1 Rule 1: Known Capabilities
  528.  
  529.    If the sending agent has received a set of capabilities from the
  530.    recipient for the message the agent is about to encrypt, then the
  531.    sending agent SHOULD use that information by selecting the first
  532.    capability in the list (that is, the capability most preferred by the
  533.    intended recipient) for which the sending agent knows how to encrypt.
  534.    The sending agent SHOULD use one of the capabilities in the list if
  535.    the agent reasonably expects the recipient to be able to decrypt the
  536.    message.
  537.  
  538. 2.7.1.2 Rule 2: Unknown Capabilities, Known Use of Encryption
  539.  
  540.    If:
  541.     - the sending agent has no knowledge of the encryption capabilities
  542.       of the recipient,
  543.     - and the sending agent has received at least one message from the
  544.       recipient,
  545.     - and the last encrypted message received from the recipient had a
  546.       trusted signature on it,
  547.  
  548.    then the outgoing message SHOULD use the same encryption algorithm as
  549.    was used on the last signed and encrypted message received from the
  550.    recipient.
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562. Ramsdell                    Standards Track                    [Page 10]
  563.  
  564. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  565.  
  566.  
  567. 2.7.1.3 Rule 3: Unknown Capabilities, Unknown Version of S/MIME
  568.  
  569.    If:
  570.  
  571.     - the sending agent has no knowledge of the encryption capabilities
  572.       of the recipient,
  573.     - and the sending agent has no knowledge of the version of S/MIME
  574.       of the recipient,
  575.  
  576.    then the sending agent SHOULD use tripleDES because it is a stronger
  577.    algorithm and is required by S/MIME v3. If the sending agent chooses
  578.    not to use tripleDES in this step, it SHOULD use RC2/40.
  579.  
  580. 2.7.2 Choosing Weak Encryption
  581.  
  582.    Like all algorithms that use 40 bit keys, RC2/40 is considered by
  583.    many to be weak encryption. A sending agent that is controlled by a
  584.    human SHOULD allow a human sender to determine the risks of sending
  585.    data using RC2/40 or a similarly weak encryption algorithm before
  586.    sending the data, and possibly allow the human to use a stronger
  587.    encryption method such as tripleDES.
  588.  
  589. 2.7.3 Multiple Recipients
  590.  
  591.    If a sending agent is composing an encrypted message to a group of
  592.    recipients where the encryption capabilities of some of the
  593.    recipients do not overlap, the sending agent is forced to send more
  594.    than one message. It should be noted that if the sending agent
  595.    chooses to send a message encrypted with a strong algorithm, and then
  596.    send the same message encrypted with a weak algorithm, someone
  597.    watching the communications channel may be able to learn the contents
  598.    of the strongly-encrypted message simply by decrypting the weakly-
  599.    encrypted message.
  600.  
  601. 3. Creating S/MIME Messages
  602.  
  603.    This section describes the S/MIME message formats and how they are
  604.    created. S/MIME messages are a combination of MIME bodies and CMS
  605.    objects. Several MIME types as well as several CMS objects are used.
  606.    The data to be secured is always a canonical MIME entity. The MIME
  607.    entity and other data, such as certificates and algorithm
  608.    identifiers, are given to CMS processing facilities which produces a
  609.    CMS object.  The CMS object is then finally wrapped in MIME. The
  610.    Enhanced Security Services for S/MIME [ESS] document provides
  611.    examples of how nested, secured S/MIME messages are formatted.  ESS
  612.    provides an example of how a triple-wrapped S/MIME message is
  613.    formatted using multipart/signed and application/pkcs7-mime for the
  614.    signatures.
  615.  
  616.  
  617.  
  618. Ramsdell                    Standards Track                    [Page 11]
  619.  
  620. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  621.  
  622.  
  623.    S/MIME provides one format for enveloped-only data, several formats
  624.    for signed-only data, and several formats for signed and enveloped
  625.    data. Several formats are required to accommodate several
  626.    environments, in particular for signed messages. The criteria for
  627.    choosing among these formats are also described.
  628.  
  629.    The reader of this section is expected to understand MIME as
  630.    described in [MIME-SPEC] and [MIME-SECURE].
  631.  
  632. 3.1 Preparing the MIME Entity for Signing or Enveloping
  633.  
  634.    S/MIME is used to secure MIME entities. A MIME entity may be a sub-
  635.    part, sub-parts of a message, or the whole message with all its sub-
  636.    parts. A MIME entity that is the whole message includes only the MIME
  637.    headers and MIME body, and does not include the RFC-822 headers.
  638.    Note that S/MIME can also be used to secure MIME entities used in
  639.    applications other than Internet mail.
  640.  
  641.    The MIME entity that is secured and described in this section can be
  642.    thought of as the "inside" MIME entity. That is, it is the
  643.    "innermost" object in what is possibly a larger MIME message.
  644.    Processing "outside" MIME entities into CMS objects is described in
  645.    Section 3.2, 3.4 and elsewhere.
  646.  
  647.    The procedure for preparing a MIME entity is given in [MIME-SPEC].
  648.    The same procedure is used here with some additional restrictions
  649.    when signing. Description of the procedures from [MIME-SPEC] are
  650.    repeated here, but the reader should refer to that document for the
  651.    exact procedure. This section also describes additional requirements.
  652.  
  653.    A single procedure is used for creating MIME entities that are to be
  654.    signed, enveloped, or both signed and enveloped. Some additional
  655.    steps are recommended to defend against known corruptions that can
  656.    occur during mail transport that are of particular importance for
  657.    clear- signing using the multipart/signed format. It is recommended
  658.    that these additional steps be performed on enveloped messages, or
  659.    signed and enveloped messages in order that the message can be
  660.    forwarded to any environment without modification.
  661.  
  662.    These steps are descriptive rather than prescriptive. The implementor
  663.    is free to use any procedure as long as the result is the same.
  664.  
  665.    Step 1. The MIME entity is prepared according to the local
  666.    conventions
  667.  
  668.    Step 2. The leaf parts of the MIME entity are converted to canonical
  669.    form
  670.  
  671.  
  672.  
  673.  
  674. Ramsdell                    Standards Track                    [Page 12]
  675.  
  676. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  677.  
  678.  
  679.    Step 3. Appropriate transfer encoding is applied to the leaves of the
  680.    MIME entity
  681.  
  682.    When an S/MIME message is received, the security services on the
  683.    message are processed, and the result is the MIME entity. That MIME
  684.    entity is typically passed to a MIME-capable user agent where, it is
  685.    further decoded and presented to the user or receiving application.
  686.  
  687. 3.1.1 Canonicalization
  688.  
  689.    Each MIME entity MUST be converted to a canonical form that is
  690.    uniquely and unambiguously representable in the environment where the
  691.    signature is created and the environment where the signature will be
  692.    verified.  MIME entities MUST be canonicalized for enveloping as well
  693.    as signing.
  694.  
  695.    The exact details of canonicalization depend on the actual MIME type
  696.    and subtype of an entity, and are not described here. Instead, the
  697.    standard for the particular MIME type should be consulted. For
  698.    example, canonicalization of type text/plain is different from
  699.    canonicalization of audio/basic. Other than text types, most types
  700.    have only one representation regardless of computing platform or
  701.    environment which can be considered their canonical representation.
  702.    In general, canonicalization will be performed by the non-security
  703.    part of the sending agent rather than the S/MIME implementation.
  704.  
  705.    The most common and important canonicalization is for text, which is
  706.    often represented differently in different environments. MIME
  707.    entities of major type "text" must have both their line endings and
  708.    character set canonicalized. The line ending must be the pair of
  709.    characters <CR><LF>, and the charset should be a registered charset
  710.    [CHARSETS].  The details of the canonicalization are specified in
  711.    [MIME-SPEC]. The chosen charset SHOULD be named in the charset
  712.    parameter so that the receiving agent can unambiguously determine the
  713.    charset used.
  714.  
  715.    Note that some charsets such as ISO-2022 have multiple
  716.    representations for the same characters. When preparing such text for
  717.    signing, the canonical representation specified for the charset MUST
  718.    be used.
  719.  
  720. 3.1.2 Transfer Encoding
  721.  
  722.    When generating any of the secured MIME entities below, except the
  723.    signing using the multipart/signed format, no transfer encoding at
  724.    all is required.  S/MIME implementations MUST be able to deal with
  725.    binary MIME objects. If no Content-Transfer-Encoding header is
  726.    present, the transfer encoding should be considered 7BIT.
  727.  
  728.  
  729.  
  730. Ramsdell                    Standards Track                    [Page 13]
  731.  
  732. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  733.  
  734.  
  735.    S/MIME implementations SHOULD however use transfer encoding described
  736.    in section 3.1.3 for all MIME entities they secure. The reason for
  737.    securing only 7-bit MIME entities, even for enveloped data that are
  738.    not exposed to the transport, is that it allows the MIME entity to be
  739.    handled in any environment without changing it. For example, a
  740.    trusted gateway might remove the envelope, but not the signature, of
  741.    a message, and then forward the signed message on to the end
  742.    recipient so that they can verify the signatures directly. If the
  743.    transport internal to the site is not 8-bit clean, such as on a
  744.    wide-area network with a single mail gateway, verifying the signature
  745.    will not be possible unless the original MIME entity was only 7-bit
  746.    data.
  747.  
  748. 3.1.3 Transfer Encoding for Signing Using multipart/signed
  749.  
  750.    If a multipart/signed entity is EVER to be transmitted over the
  751.    standard Internet SMTP infrastructure or other transport that is
  752.    constrained to 7-bit text, it MUST have transfer encoding applied so
  753.    that it is represented as 7-bit text. MIME entities that are 7-bit
  754.    data already need no transfer encoding. Entities such as 8-bit text
  755.    and binary data can be encoded with quoted-printable or base-64
  756.    transfer encoding.
  757.  
  758.    The primary reason for the 7-bit requirement is that the Internet
  759.    mail transport infrastructure cannot guarantee transport of 8-bit or
  760.    binary data. Even though many segments of the transport
  761.    infrastructure now handle 8-bit and even binary data, it is sometimes
  762.    not possible to know whether the transport path is 8-bit clear. If a
  763.    mail message with 8-bit data were to encounter a message transfer
  764.    agent that can not transmit 8-bit or binary data, the agent has three
  765.    options, none of which are acceptable for a clear-signed message:
  766.  
  767.    - The agent could change the transfer encoding; this would invalidate
  768.      the signature.
  769.    - The agent could transmit the data anyway, which would most likely
  770.      result in the 8th bit being corrupted; this too would invalidate the
  771.      signature.
  772.    - The agent could return the message to the sender.
  773.  
  774.    [MIME-SECURE] prohibits an agent from changing the transfer encoding
  775.    of the first part of a multipart/signed message. If a compliant agent
  776.    that can not transmit 8-bit or binary data encounters a
  777.    multipart/signed message with 8-bit or binary data in the first part,
  778.    it would have to return the message to the sender as undeliverable.
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Ramsdell                    Standards Track                    [Page 14]
  787.  
  788. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  789.  
  790.  
  791. 3.1.4 Sample Canonical MIME Entity
  792.  
  793.    This example shows a multipart/mixed message with full transfer
  794.    encoding. This message contains a text part and an attachment. The
  795.    sample message text includes characters that are not US-ASCII and
  796.    thus must be transfer encoded. Though not shown here, the end of each
  797.    line is <CR><LF>. The line ending of the MIME headers, the text, and
  798.    transfer encoded parts, all must be <CR><LF>.
  799.  
  800.    Note that this example is not of an S/MIME message.
  801.  
  802.      Content-Type: multipart/mixed; boundary=bar
  803.  
  804.      --bar
  805.      Content-Type: text/plain; charset=iso-8859-1
  806.      Content-Transfer-Encoding: quoted-printable
  807.  
  808.      =A1Hola Michael!
  809.  
  810.      How do you like the new S/MIME specification?
  811.  
  812.      I agree. It's generally a good idea to encode lines that begin with
  813.      From=20 because some mail transport agents will insert a
  814.      greater-than (>) sign, thus invalidating the signature.
  815.  
  816.      Also, in some cases it might be desirable to encode any  =20
  817.      trailing whitespace that occurs on lines in order to ensure  =20
  818.      that the message signature is not invalidated when passing  =20
  819.      a gateway that modifies such whitespace (like BITNET).  =20
  820.  
  821.      --bar
  822.      Content-Type: image/jpeg
  823.      Content-Transfer-Encoding: base64
  824.  
  825.      iQCVAwUBMJrRF2N9oWBghPDJAQE9UQQAtl7LuRVndBjrk4EqYBIb3h5QXIX/LC//
  826.      jJV5bNvkZIGPIcEmI5iFd9boEgvpirHtIREEqLQRkYNoBActFBZmh9GC3C041WGq
  827.      uMbrbxc+nIs1TIKlA08rVi9ig/2Yh7LFrK5Ein57U/W72vgSxLhe/zhdfolT9Brn
  828.      HOxEa44b+EI=
  829.  
  830.      --bar--
  831.  
  832. 3.2 The application/pkcs7-mime Type
  833.  
  834.    The application/pkcs7-mime type is used to carry CMS objects of
  835.    several types including envelopedData and signedData. The details of
  836.    constructing these entities is described in subsequent sections. This
  837.    section describes the general characteristics of the
  838.    application/pkcs7-mime type.
  839.  
  840.  
  841.  
  842. Ramsdell                    Standards Track                    [Page 15]
  843.  
  844. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  845.  
  846.  
  847.    The carried CMS object always contains a MIME entity that is prepared
  848.    as described in section 3.1 if the eContentType is id-data. Other
  849.    contents may be carried when the eContentType contains different
  850.    values. See [ESS] for an example of this with signed receipts.
  851.  
  852.    Since CMS objects are binary data, in most cases base-64 transfer
  853.    encoding is appropriate, in particular when used with SMTP transport.
  854.    The transfer encoding used depends on the transport through which the
  855.    object is to be sent, and is not a characteristic of the MIME type.
  856.  
  857.    Note that this discussion refers to the transfer encoding of the CMS
  858.    object or "outside" MIME entity. It is completely distinct from, and
  859.    unrelated to, the transfer encoding of the MIME entity secured by the
  860.    CMS object, the "inside" object, which is described in section 3.1.
  861.  
  862.    Because there are several types of application/pkcs7-mime objects, a
  863.    sending agent SHOULD do as much as possible to help a receiving agent
  864.    know about the contents of the object without forcing the receiving
  865.    agent to decode the ASN.1 for the object. The MIME headers of all
  866.    application/pkcs7-mime objects SHOULD include the optional "smime-
  867.    type" parameter, as described in the following sections.
  868.  
  869. 3.2.1 The name and filename Parameters
  870.  
  871.    For the application/pkcs7-mime, sending agents SHOULD emit the
  872.    optional "name" parameter to the Content-Type field for compatibility
  873.    with older systems. Sending agents SHOULD also emit the optional
  874.    Content-Disposition field [CONTDISP] with the "filename" parameter.
  875.    If a sending agent emits the above parameters, the value of the
  876.    parameters SHOULD be a file name with the appropriate extension:
  877.  
  878.    MIME Type                                File Extension
  879.  
  880.    Application/pkcs7-mime (signedData,      .p7m
  881.    envelopedData)
  882.  
  883.    Application/pkcs7-mime (degenerate       .p7c
  884.    signedData "certs-only" message)
  885.  
  886.    Application/pkcs7-signature              .p7s
  887.  
  888.    In addition, the file name SHOULD be limited to eight characters
  889.    followed by a three letter extension. The eight character filename
  890.    base can be any distinct name; the use of the filename base "smime"
  891.    SHOULD be used to indicate that the MIME entity is associated with
  892.    S/MIME.
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Ramsdell                    Standards Track                    [Page 16]
  899.  
  900. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  901.  
  902.  
  903.    Including a file name serves two purposes. It facilitates easier use
  904.    of S/MIME objects as files on disk. It also can convey type
  905.    information across gateways. When a MIME entity of type
  906.    application/pkcs7-mime (for example) arrives at a gateway that has no
  907.    special knowledge of S/MIME, it will default the entity's MIME type
  908.    to application/octet-stream and treat it as a generic attachment,
  909.    thus losing the type information. However, the suggested filename for
  910.    an attachment is often carried across a gateway. This often allows
  911.    the receiving systems to determine the appropriate application to
  912.    hand the attachment off to, in this case a stand-alone S/MIME
  913.    processing application. Note that this mechanism is provided as a
  914.    convenience for implementations in certain environments. A proper
  915.    S/MIME implementation MUST use the MIME types and MUST NOT rely on
  916.    the file extensions.
  917.  
  918. 3.2.2 The smime-type parameter
  919.  
  920.    The application/pkcs7-mime content type defines the optional "smime-
  921.    type" parameter. The intent of this parameter is to convey details
  922.    about the security applied (signed or enveloped) along with
  923.    infomation about the contained content. This memo defines the
  924.    following smime-types.
  925.  
  926.    Name                   Security                Inner Content
  927.  
  928.    enveloped-data         EnvelopedData           id-data
  929.  
  930.    signed-data            SignedData              id-data
  931.  
  932.    certs-only             SignedData              none
  933.  
  934.    In order that consistency can be obtained with future, the following
  935.    guidelines should be followed when assigning a new smime-type
  936.    parameter.
  937.  
  938.    1. If both signing and encryption can be applied to the content, then
  939.    two values for smime-type SHOULD be assigned "signed-*" and
  940.    "encrypted-*".  If one operation can be assigned then this may be
  941.    omitted. Thus since "certs-only" can only be signed, "signed-" is
  942.    omitted.
  943.  
  944.    2. A common string for a content oid should be assigned. We use
  945.    "data" for the id-data content OID when MIME is the inner content.
  946.  
  947.    3. If no common string is assigned.  Then the common string of
  948.    "OID.<oid>" is recommended (for example, "OID.1.3.6.1.5.5.7.6.1"
  949.    would be DES40).
  950.  
  951.  
  952.  
  953.  
  954. Ramsdell                    Standards Track                    [Page 17]
  955.  
  956. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  957.  
  958.  
  959. 3.3 Creating an Enveloped-only Message
  960.  
  961.    This section describes the format for enveloping a MIME entity
  962.    without signing it. It is important to note that sending enveloped
  963.    but not signed messages does not provide for data integrity. It is
  964.    possible to replace ciphertext in such a way that the processed
  965.    message will still be valid, but the meaning may be altered.
  966.  
  967.    Step 1. The MIME entity to be enveloped is prepared according to
  968.    section 3.1.
  969.  
  970.    Step 2. The MIME entity and other required data is processed into a
  971.    CMS object of type envelopedData. In addition to encrypting a copy of
  972.    the content-encryption key for each recipient, a copy of the content
  973.    encryption key SHOULD be encrypted for the originator and included in
  974.    the envelopedData (see CMS Section 6).
  975.  
  976.    Step 3. The CMS object is inserted into an application/pkcs7-mime
  977.    MIME entity.
  978.  
  979.    The smime-type parameter for enveloped-only messages is "enveloped-
  980.    data". The file extension for this type of message is ".p7m".
  981.  
  982.    A sample message would be:
  983.  
  984.        Content-Type: application/pkcs7-mime; smime-type=enveloped-data;
  985.             name=smime.p7m
  986.        Content-Transfer-Encoding: base64
  987.        Content-Disposition: attachment; filename=smime.p7m
  988.  
  989.        rfvbnj756tbBghyHhHUujhJhjH77n8HHGT9HG4VQpfyF467GhIGfHfYT6
  990.        7n8HHGghyHhHUujhJh4VQpfyF467GhIGfHfYGTrfvbnjT6jH7756tbB9H
  991.        f8HHGTrfvhJhjH776tbB9HG4VQbnj7567GhIGfHfYT6ghyHhHUujpfyF4
  992.        0GhIGfHfQbnj756YT64V
  993.  
  994. 3.4 Creating a Signed-only Message
  995.  
  996.    There are two formats for signed messages defined for S/MIME:
  997.    application/pkcs7-mime with SignedData, and multipart/signed. In
  998.    general, the multipart/signed form is preferred for sending, and
  999.    receiving agents SHOULD be able to handle both.
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Ramsdell                    Standards Track                    [Page 18]
  1011.  
  1012. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1013.  
  1014.  
  1015. 3.4.1 Choosing a Format for Signed-only Messages
  1016.  
  1017.    There are no hard-and-fast rules when a particular signed-only format
  1018.    should be chosen because it depends on the capabilities of all the
  1019.    receivers and the relative importance of receivers with S/MIME
  1020.    facilities being able to verify the signature versus the importance
  1021.    of receivers without S/MIME software being able to view the message.
  1022.  
  1023.    Messages signed using the multipart/signed format can always be
  1024.    viewed by the receiver whether they have S/MIME software or not. They
  1025.    can also be viewed whether they are using a MIME-native user agent or
  1026.    they have messages translated by a gateway. In this context, "be
  1027.    viewed" means the ability to process the message essentially as if it
  1028.    were not a signed message, including any other MIME structure the
  1029.    message might have.
  1030.  
  1031.    Messages signed using the signedData format cannot be viewed by a
  1032.    recipient unless they have S/MIME facilities. However, if they have
  1033.    S/MIME facilities, these messages can always be verified if they were
  1034.    not changed in transit.
  1035.  
  1036. 3.4.2 Signing Using application/pkcs7-mime with SignedData
  1037.  
  1038.    This signing format uses the application/pkcs7-mime MIME type. The
  1039.    steps to create this format are:
  1040.  
  1041.    Step 1. The MIME entity is prepared according to section 3.1
  1042.  
  1043.    Step 2. The MIME entity and other required data is processed into a
  1044.    CMS object of type signedData
  1045.  
  1046.    Step 3. The CMS object is inserted into an application/pkcs7-mime
  1047.    MIME entity
  1048.  
  1049.    The smime-type parameter for messages using application/pkcs7-mime
  1050.    with SignedData is "signed-data". The file extension for this type of
  1051.    message is ".p7m".
  1052.  
  1053.    A sample message would be:
  1054.  
  1055.        Content-Type: application/pkcs7-mime; smime-type=signed-data;
  1056.             name=smime.p7m
  1057.        Content-Transfer-Encoding: base64
  1058.        Content-Disposition: attachment; filename=smime.p7m
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Ramsdell                    Standards Track                    [Page 19]
  1067.  
  1068. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1069.  
  1070.  
  1071.        567GhIGfHfYT6ghyHhHUujpfyF4f8HHGTrfvhJhjH776tbB9HG4VQbnj7
  1072.        77n8HHGT9HG4VQpfyF467GhIGfHfYT6rfvbnj756tbBghyHhHUujhJhjH
  1073.        HUujhJh4VQpfyF467GhIGfHfYGTrfvbnjT6jH7756tbB9H7n8HHGghyHh
  1074.        6YT64V0GhIGfHfQbnj75
  1075.  
  1076. 3.4.3 Signing Using the multipart/signed Format
  1077.  
  1078.    This format is a clear-signing format. Recipients without any S/MIME
  1079.    or CMS processing facilities are able to view the message. It makes
  1080.    use of the multipart/signed MIME type described in [MIME-SECURE]. The
  1081.    multipart/signed MIME type has two parts. The first part contains the
  1082.    MIME entity that is signed; the second part contains the "detached
  1083.    signature" CMS SignedData object in which the encapContentInfo
  1084.    eContent field is absent.
  1085.  
  1086. 3.4.3.1 The application/pkcs7-signature MIME Type
  1087.  
  1088.    This MIME type always contains a single CMS object of type
  1089.    signedData.  The signedData encapContentInfo eContent field MUST be
  1090.    absent. The signerInfos field contains the signatures for the MIME
  1091.    entity.
  1092.  
  1093.    The file extension for signed-only messages using application/pkcs7-
  1094.    signature is ".p7s".
  1095.  
  1096. 3.4.3.2 Creating a multipart/signed Message
  1097.  
  1098.    Step 1. The MIME entity to be signed is prepared according to section
  1099.    3.1, taking special care for clear-signing.
  1100.  
  1101.    Step 2. The MIME entity is presented to CMS processing in order to
  1102.    obtain an object of type signedData in which the encapContentInfo
  1103.    eContent field is absent.
  1104.  
  1105.    Step 3. The MIME entity is inserted into the first part of a
  1106.    multipart/signed message with no processing other than that described
  1107.    in section 3.1.
  1108.  
  1109.    Step 4. Transfer encoding is applied to the "detached signature" CMS
  1110.    SignedData object and it is inserted into a MIME entity of type
  1111.    application/pkcs7-signature.
  1112.  
  1113.    Step 5. The MIME entity of the application/pkcs7-signature is
  1114.    inserted into the second part of the multipart/signed entity.
  1115.  
  1116.    The multipart/signed Content type has two required parameters: the
  1117.    protocol parameter and the micalg parameter.
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Ramsdell                    Standards Track                    [Page 20]
  1123.  
  1124. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1125.  
  1126.  
  1127.    The protocol parameter MUST be "application/pkcs7-signature". Note
  1128.    that quotation marks are required around the protocol parameter
  1129.    because MIME requires that the "/" character in the parameter value
  1130.    MUST be quoted.
  1131.  
  1132.    The micalg parameter allows for one-pass processing when the
  1133.    signature is being verified. The value of the micalg parameter is
  1134.    dependent on the message digest algorithm(s) used in the calculation
  1135.    of the Message Integrity Check. If multiple message digest algorithms
  1136.    are used they MUST be separated by commas per [MIME-SECURE]. The
  1137.    values to be placed in the micalg parameter SHOULD be from the
  1138.    following:
  1139.  
  1140.    Algorithm   Value
  1141.    used
  1142.  
  1143.    MD5         md5
  1144.    SHA-1       sha1
  1145.    Any other   unknown
  1146.  
  1147.    (Historical note: some early implementations of S/MIME emitted and
  1148.    expected "rsa-md5" and "rsa-sha1" for the micalg parameter.)
  1149.    Receiving agents SHOULD be able to recover gracefully from a micalg
  1150.    parameter value that they do not recognize.
  1151.  
  1152. 3.4.3.3 Sample multipart/signed Message
  1153.  
  1154.        Content-Type: multipart/signed;
  1155.           protocol="application/pkcs7-signature";
  1156.           micalg=sha1; boundary=boundary42
  1157.  
  1158.        --boundary42
  1159.        Content-Type: text/plain
  1160.  
  1161.        This is a clear-signed message.
  1162.  
  1163.        --boundary42
  1164.        Content-Type: application/pkcs7-signature; name=smime.p7s
  1165.        Content-Transfer-Encoding: base64
  1166.        Content-Disposition: attachment; filename=smime.p7s
  1167.  
  1168.        ghyHhHUujhJhjH77n8HHGTrfvbnj756tbB9HG4VQpfyF467GhIGfHfYT6
  1169.        4VQpfyF467GhIGfHfYT6jH77n8HHGghyHhHUujhJh756tbB9HGTrfvbnj
  1170.        n8HHGTrfvhJhjH776tbB9HG4VQbnj7567GhIGfHfYT6ghyHhHUujpfyF4
  1171.        7GhIGfHfYT64VQbnj756
  1172.  
  1173.        --boundary42--
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Ramsdell                    Standards Track                    [Page 21]
  1179.  
  1180. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1181.  
  1182.  
  1183. 3.5 Signing and Encrypting
  1184.  
  1185.    To achieve signing and enveloping, any of the signed-only and
  1186.    encrypted-only formats may be nested. This is allowed because the
  1187.    above formats are all MIME entities, and because they all secure MIME
  1188.    entities.
  1189.  
  1190.    An S/MIME implementation MUST be able to receive and process
  1191.    arbitrarily nested S/MIME within reasonable resource limits of the
  1192.    recipient computer.
  1193.  
  1194.    It is possible to either sign a message first, or to envelope the
  1195.    message first. It is up to the implementor and the user to choose.
  1196.    When signing first, the signatories are then securely obscured by the
  1197.    enveloping. When enveloping first the signatories are exposed, but it
  1198.    is possible to verify signatures without removing the enveloping.
  1199.    This may be useful in an environment were automatic signature
  1200.    verification is desired, as no private key material is required to
  1201.    verify a signature.
  1202.  
  1203.    There are security ramifications to choosing whether to sign first or
  1204.    encrypt first. A recipient of a message that is encrypted and then
  1205.    signed can validate that the encrypted block was unaltered, but
  1206.    cannot determine any relationship between the signer and the
  1207.    unencrypted contents of the message. A recipient of a message that is
  1208.    signed-then-encrypted can assume that the signed message itself has
  1209.    not been altered, but that a careful attacker may have changed the
  1210.    unauthenticated portions of the encrypted message.
  1211.  
  1212. 3.6 Creating a Certificates-only Message
  1213.  
  1214.    The certificates only message or MIME entity is used to transport
  1215.    certificates, such as in response to a registration request. This
  1216.    format can also be used to convey CRLs.
  1217.  
  1218.    Step 1. The certificates are made available to the CMS generating
  1219.    process which creates a CMS object of type signedData. The signedData
  1220.    encapContentInfo eContent field MUST be absent and signerInfos field
  1221.    MUST be empty.
  1222.  
  1223.    Step 2. The CMS signedData object is enclosed in an
  1224.    application/pkcs7-mime MIME entity
  1225.  
  1226.    The smime-type parameter for a certs-only message is "certs-only".
  1227.    The file extension for this type of message is ".p7c".
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Ramsdell                    Standards Track                    [Page 22]
  1235.  
  1236. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1237.  
  1238.  
  1239. 3.7 Registration Requests
  1240.  
  1241.    A sending agent that signs messages MUST have a certificate for the
  1242.    signature so that a receiving agent can verify the signature. There
  1243.    are many ways of getting certificates, such as through an exchange
  1244.    with a certificate authority, through a hardware token or diskette,
  1245.    and so on.
  1246.  
  1247.    S/MIME v2 [SMIMEV2] specified a method for "registering" public keys
  1248.    with certificate authorities using an application/pkcs10 body part.
  1249.    The IETF's PKIX Working Group is preparing another method for
  1250.    requesting certificates; however, that work was not finished at the
  1251.    time of this memo. S/MIME v3 does not specify how to request a
  1252.  
  1253.    certificate, but instead mandates that every sending agent already
  1254.    has a certificate. Standardization of certificate management is being
  1255.    pursued separately in the IETF.
  1256.  
  1257. 3.8 Identifying an S/MIME Message
  1258.  
  1259.    Because S/MIME takes into account interoperation in non-MIME
  1260.    environments, several different mechanisms are employed to carry the
  1261.    type information, and it becomes a bit difficult to identify S/MIME
  1262.    messages. The following table lists criteria for determining whether
  1263.    or not a message is an S/MIME message. A message is considered an
  1264.    S/MIME message if it matches any below.
  1265.  
  1266.    The file suffix in the table below comes from the "name" parameter in
  1267.    the content-type header, or the "filename" parameter on the content-
  1268.    disposition header. These parameters that give the file suffix are
  1269.    not listed below as part of the parameter section.
  1270.  
  1271.    MIME type:   application/pkcs7-mime
  1272.    parameters:  any
  1273.    file suffix: any
  1274.  
  1275.    MIME type:   multipart/signed
  1276.    parameters:  protocol="application/pkcs7-signature"
  1277.    file suffix: any
  1278.  
  1279.    MIME type:   application/octet-stream
  1280.    parameters:  any
  1281.    file suffix: p7m, p7s, p7c
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Ramsdell                    Standards Track                    [Page 23]
  1291.  
  1292. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1293.  
  1294.  
  1295. 4. Certificate Processing
  1296.  
  1297.    A receiving agent MUST provide some certificate retrieval mechanism
  1298.    in order to gain access to certificates for recipients of digital
  1299.    envelopes. This memo does not cover how S/MIME agents handle
  1300.    certificates, only what they do after a certificate has been
  1301.    validated or rejected. S/MIME certification issues are covered in
  1302.    [CERT3].
  1303.  
  1304.    At a minimum, for initial S/MIME deployment, a user agent could
  1305.    automatically generate a message to an intended recipient requesting
  1306.    that recipient's certificate in a signed return message. Receiving
  1307.    and sending agents SHOULD also provide a mechanism to allow a user to
  1308.    "store and protect" certificates for correspondents in such a way so
  1309.    as to guarantee their later retrieval.
  1310.  
  1311. 4.1 Key Pair Generation
  1312.  
  1313.    If an S/MIME agent needs to generate a key pair, then the S/MIME
  1314.    agent or some related administrative utility or function MUST be
  1315.    capable of generating separate DH and DSS public/private key pairs on
  1316.    behalf of the user. Each key pair MUST be generated from a good
  1317.    source of non-deterministic random input [RANDOM] and the private key
  1318.    MUST be protected in a secure fashion.
  1319.  
  1320.    If an S/MIME agent needs to generate a key pair, then the S/MIME
  1321.    agent or some related administrative utility or function SHOULD
  1322.    generate RSA key pairs.
  1323.  
  1324.    A user agent SHOULD generate RSA key pairs at a minimum key size of
  1325.    768 bits. A user agent MUST NOT generate RSA key pairs less than 512
  1326.    bits long. Creating keys longer than 1024 bits may cause some older
  1327.    S/MIME receiving agents to not be able to verify signatures, but
  1328.    gives better security and is therefore valuable. A receiving agent
  1329.    SHOULD be able to verify signatures with keys of any size over 512
  1330.    bits. Some agents created in the United States have chosen to create
  1331.    512 bit keys in order to get more advantageous export licenses.
  1332.    However, 512 bit keys are considered by many to be cryptographically
  1333.    insecure.  Implementors should be aware that multiple (active) key
  1334.    pairs may be associated with a single individual. For example, one
  1335.    key pair may be used to support confidentiality, while a different
  1336.    key pair may be used for authentication.
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. Ramsdell                    Standards Track                    [Page 24]
  1347.  
  1348. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1349.  
  1350.  
  1351. 5. Security
  1352.  
  1353.    This entire memo discusses security. Security issues not covered in
  1354.    other parts of the memo include:
  1355.  
  1356.    40-bit encryption is considered weak by most cryptographers. Using
  1357.    weak cryptography in S/MIME offers little actual security over
  1358.    sending plaintext. However, other features of S/MIME, such as the
  1359.    specification of tripleDES and the ability to announce stronger
  1360.    cryptographic capabilities to parties with whom you communicate,
  1361.    allow senders to create messages that use strong encryption. Using
  1362.    weak cryptography is never recommended unless the only alternative is
  1363.    no cryptography. When feasible, sending and receiving agents should
  1364.    inform senders and recipients the relative cryptographic strength of
  1365.    messages.
  1366.  
  1367.    It is impossible for most software or people to estimate the value of
  1368.    a message. Further, it is impossible for most software or people to
  1369.    estimate the actual cost of decrypting a message that is encrypted
  1370.    with a key of a particular size. Further, it is quite difficult to
  1371.    determine the cost of a failed decryption if a recipient cannot
  1372.    decode a message. Thus, choosing between different key sizes (or
  1373.    choosing whether to just use plaintext) is also impossible. However,
  1374.    decisions based on these criteria are made all the time, and
  1375.    therefore this memo gives a framework for using those estimates in
  1376.    choosing algorithms.
  1377.  
  1378.    If a sending agent is sending the same message using different
  1379.    strengths of cryptography, an attacker watching the communications
  1380.    channel may be able to determine the contents of the strongly-
  1381.    encrypted message by decrypting the weakly-encrypted version.  In
  1382.    other words, a sender should not send a copy of a message using
  1383.    weaker cryptography than they would use for the original of the
  1384.    message.
  1385.  
  1386.    Modification of the ciphertext can go undetected if authentication is
  1387.    not also used, which is the case when sending EnvelopedData without
  1388.    wrapping it in SignedData or enclosing SignedData within it.
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Ramsdell                    Standards Track                    [Page 25]
  1403.  
  1404. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1405.  
  1406.  
  1407. A. ASN.1 Module
  1408.  
  1409. SecureMimeMessageV3
  1410.   { iso(1) member-body(2) us(840) rsadsi(113549)
  1411.          pkcs(1) pkcs-9(9) smime(16) modules(0) smime(4) }
  1412.  
  1413. DEFINITIONS IMPLICIT TAGS ::=
  1414. BEGIN
  1415.  
  1416. IMPORTS
  1417. -- Cryptographic Message Syntax
  1418.     SubjectKeyIdentifier, IssuerAndSerialNumber,
  1419. RecipientKeyIdentifier
  1420.         FROM    CryptographicMessageSyntax
  1421.                { iso(1) member-body(2) us(840) rsadsi(113549)
  1422.                  pkcs(1) pkcs-9(9) smime(16) modules(0) cms(1) };
  1423.  
  1424. --  id-aa is the arc with all new authenticated and unauthenticated
  1425. --  attributes produced the by S/MIME Working Group
  1426.  
  1427. id-aa OBJECT IDENTIFIER ::= {iso(1) member-body(2) usa(840)
  1428. rsadsi(113549)
  1429.         pkcs(1) pkcs-9(9) smime(16) attributes(2)}
  1430.  
  1431. -- S/MIME Capabilities provides a method of broadcasting the symetric
  1432. -- capabilities understood.  Algorithms should be ordered by preference
  1433. -- and grouped by type
  1434.  
  1435. smimeCapabilities OBJECT IDENTIFIER ::=
  1436.    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) 15}
  1437.  
  1438. SMIMECapability ::= SEQUENCE {
  1439.    capabilityID OBJECT IDENTIFIER,
  1440.    parameters ANY DEFINED BY capabilityID OPTIONAL }
  1441.  
  1442. SMIMECapabilities ::= SEQUENCE OF SMIMECapability
  1443.  
  1444. -- Encryption Key Preference provides a method of broadcasting the
  1445. -- preferred encryption certificate.
  1446.  
  1447. id-aa-encrypKeyPref OBJECT IDENTIFIER ::= {id-aa 11}
  1448.  
  1449. SMIMEEncryptionKeyPreference ::= CHOICE {
  1450.    issuerAndSerialNumber   [0] IssuerAndSerialNumber,
  1451.    receipentKeyId          [1] RecipientKeyIdentifier,
  1452.    subjectAltKeyIdentifier [2] SubjectKeyIdentifier
  1453. }
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Ramsdell                    Standards Track                    [Page 26]
  1459.  
  1460. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1461.  
  1462.  
  1463. -- The Content Encryption Algorithms defined for SMIME are:
  1464.  
  1465. -- Triple-DES is the manditory algorithm with CBCParameter being the
  1466. -- parameters
  1467.  
  1468. dES-EDE3-CBC OBJECT IDENTIFIER ::=
  1469.    {iso(1) member-body(2) us(840) rsadsi(113549)
  1470. encryptionAlgorithm(3) 7}
  1471.  
  1472. CBCParameter ::= IV
  1473.  
  1474. IV ::= OCTET STRING (SIZE (8..8))
  1475.  
  1476. --  RC2 (or compatable) is an optional algorithm w/ RC2-CBC-paramter
  1477. --  as the parameter
  1478.  
  1479. rC2-CBC OBJECT IDENTIFIER ::=
  1480.    {iso(1) member-body(2) us(840) rsadsi(113549)
  1481. encryptionAlgorithm(3) 2}
  1482.  
  1483. -- For the effective-key-bits (key size) greater than 32 and less than
  1484. -- 256, the RC2-CBC algorithm parameters are encoded as:
  1485.  
  1486. RC2-CBC-parameter ::=  SEQUENCE {
  1487.    rc2ParameterVersion  INTEGER,
  1488.    iv                   IV}
  1489.  
  1490. -- For the effective-key-bits of 40, 64, and 128, the
  1491. -- rc2ParameterVersion values are 160, 120, 58 respectively.
  1492.  
  1493. -- The following list the OIDs to be used with S/MIME V3
  1494.  
  1495. -- Digest Algorithms:
  1496.  
  1497. -- md5 OBJECT IDENTIFIER ::=
  1498. --    {iso(1) member-body(2) us(840) rsadsi(113549)
  1499. -- digestAlgorithm(2) 5}
  1500.  
  1501. -- sha-1 OBJECT IDENTIFIER ::=
  1502. --    {iso(1) identified-organization(3) oiw(14) secsig(3)
  1503. -- algorithm(2) 26}
  1504.  
  1505. -- Asymmetric Encryption Algorithms
  1506. --
  1507. -- rsaEncryption OBJECT IDENTIFIER ::=
  1508. --    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
  1509. -- 1}
  1510. --
  1511.  
  1512.  
  1513.  
  1514. Ramsdell                    Standards Track                    [Page 27]
  1515.  
  1516. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1517.  
  1518.  
  1519. -- rsa OBJECT IDENTIFIER ::=
  1520. --    {joint-iso-ccitt(2) ds(5) algorithm(8) encryptionAlgorithm(1) 1}
  1521. --
  1522. -- id-dsa OBJECT IDENTIFIER ::=
  1523. --    {iso(1) member-body(2) us(840) x9-57(10040) x9cm(4) 1 }
  1524.  
  1525. -- Signature Algorithms
  1526. --
  1527. -- md2WithRSAEncryption OBJECT IDENTIFIER ::=
  1528. --    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
  1529. -- 2}
  1530. --
  1531. -- md5WithRSAEncryption OBJECT IDENTIFIER ::=
  1532. --    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
  1533. -- 4}
  1534. --
  1535. -- sha-1WithRSAEncryption OBJECT IDENTIFIER ::=
  1536. --    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1)
  1537. -- 5}
  1538. --
  1539. -- id-dsa-with-sha1 OBJECT IDENTIFIER ::=
  1540. --    {iso(1) member-body(2) us(840) x9-57(10040) x9cm(4) 3}
  1541.  
  1542. -- Other Signed Attributes
  1543. --
  1544. -- signingTime OBJECT IDENTIFIER ::=
  1545. --    {iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
  1546. -- 5}
  1547. --    See [CMS] for a description of how to encode the attribute
  1548. --    value.
  1549.  
  1550. END
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570. Ramsdell                    Standards Track                    [Page 28]
  1571.  
  1572. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1573.  
  1574.  
  1575. B. References
  1576.  
  1577.    [3DES]         ANSI X9.52-1998, "Triple Data Encryption Algorithm
  1578.                   Modes of Operation", American National Standards
  1579.                   Institute, 1998.
  1580.  
  1581.    [CERT3]        Ramsdell, B., Editor, "S/MIME Version 3 Certificate
  1582.                   Handling", RFC 2632, June 1999.
  1583.  
  1584.    [CHARSETS]     Character sets assigned by IANA. See
  1585.                   <ftp://ftp.isi.edu/in-
  1586.                   notes/iana/assignments/character-sets>.
  1587.  
  1588.    [CMS]          Housley, R., "Cryptographic Message Syntax", RFC 2630,
  1589.                   June 1999.
  1590.  
  1591.    [CONTDISP]     Troost, R., Dorner, S. and K. Moore, "Communicating
  1592.                   Presentation Information in Internet Messages: The
  1593.                   Content-Disposition Header Field", RFC 2183, August
  1594.                   1997.
  1595.  
  1596.    [DES]          ANSI X3.106, "American National Standard for
  1597.                   Information Systems- Data Link Encryption," American
  1598.                   National Standards Institute, 1983.
  1599.  
  1600.    [DH]           Rescorla, E., "Diffie-Hellman Key Agreement Method",
  1601.                   RFC 2631, June 1999.
  1602.  
  1603.    [DSS]          NIST FIPS PUB 186, "Digital Signature Standard", 18
  1604.                   May 1994.
  1605.  
  1606.    [ESS]          Hoffman, P., Editor "Enhanced Security Services for
  1607.                   S/MIME", RFC 2634, June 1999.
  1608.  
  1609.    [MD5]          Rivest, R., "The MD5 Message Digest Algorithm", RFC
  1610.                   1321, April 1992.
  1611.  
  1612.    [MIME-SPEC]    The primary definition of MIME. "MIME Part 1: Format
  1613.                   of Internet Message Bodies", RFC 2045; "MIME Part 2:
  1614.                   Media Types", RFC 2046; "MIME Part 3: Message Header
  1615.                   Extensions for Non-ASCII Text", RFC 2047; "MIME Part
  1616.                   4: Registration Procedures", RFC 2048; "MIME Part 5:
  1617.                   Conformance Criteria and Examples", RFC 2049,
  1618.                   September 1993.
  1619.  
  1620.    [MIME-SECURE]  Galvin, J., Murphy, S., Crocker, S. and N. Freed,
  1621.                   "Security Multiparts for MIME: Multipart/Signed and
  1622.                   Multipart/Encrypted", RFC 1847, October 1995.
  1623.  
  1624.  
  1625.  
  1626. Ramsdell                    Standards Track                    [Page 29]
  1627.  
  1628. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1629.  
  1630.  
  1631.    [MUSTSHOULD]   Bradner, S., "Key words for use in RFCs to Indicate
  1632.                   Requirement Levels", BCP14, RFC 2119, March 1997.
  1633.  
  1634.    [PKCS-1]       Kaliski, B., "PKCS #1: RSA Encryption Version 2.0",
  1635.                   RFC 2437, October 1998.
  1636.  
  1637.    [PKCS-7]       Kaliski, B., "PKCS #7: Cryptographic Message Syntax
  1638.                   Version 1.5", RFC 2315, March 1998.
  1639.  
  1640.    [RANDOM]       Eastlake, 3rd, D., Crocker, S. and J. Schiller,
  1641.                   "Randomness Recommendations for Security", RFC 1750,
  1642.                   December 1994.
  1643.  
  1644.    [RC2]          Rivest, R., "A Description of the RC2 (r) Encryption
  1645.                   Algorithm", RFC 2268, January 1998.
  1646.  
  1647.    [SHA1]         NIST FIPS PUB 180-1, "Secure Hash Standard," National
  1648.                   Institute of Standards and Technology, U.S. Department
  1649.                   of Commerce, DRAFT, 31May 1994.
  1650.  
  1651.    [SMIMEV2]      Dusse, S., Hoffman, P., Ramsdell, B., Lundblade, L.
  1652.                   and L.  Repka, "S/MIME Version 2 Message
  1653.                   Specification", RFC 2311, March 1998.
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Ramsdell                    Standards Track                    [Page 30]
  1683.  
  1684. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1685.  
  1686.  
  1687. C. Acknowledgements
  1688.  
  1689.    Many thanks go out to the other authors of the S/MIME Version 2
  1690.    Message Specification RFC:  Steve Dusse, Paul Hoffman, Laurence
  1691.    Lundblade and Lisa Repka. Without v2, there wouldn't be a v3.
  1692.  
  1693.    A number of the members of the S/MIME Working Group have also worked
  1694.    very hard and contributed to this document. Any list of people is
  1695.    doomed to omission, and for that I apologize. In alphabetical order,
  1696.    the following people stand out in my mind due to the fact that they
  1697.    made direct contributions to this document.
  1698.  
  1699.    Dave Crocker
  1700.    Bill Flanigan
  1701.    Paul Hoffman
  1702.    Russ Housley
  1703.    John Pawling
  1704.    Jim Schaad
  1705.  
  1706. Editor's Address
  1707.  
  1708.    Blake Ramsdell
  1709.    Worldtalk
  1710.    17720 NE 65th St Ste 201
  1711.    Redmond, WA 98052
  1712.  
  1713.    Phone: +1 425 376 0225
  1714.    EMail: blaker@deming.com
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738. Ramsdell                    Standards Track                    [Page 31]
  1739.  
  1740. RFC 2633         S/MIME Version 3 Message Specification        June 1999
  1741.  
  1742.  
  1743. Full Copyright Statement
  1744.  
  1745.    Copyright (C) The Internet Society (1999).  All Rights Reserved.
  1746.  
  1747.    This document and translations of it may be copied and furnished to
  1748.    others, and derivative works that comment on or otherwise explain it
  1749.    or assist in its implementation may be prepared, copied, published
  1750.    and distributed, in whole or in part, without restriction of any
  1751.    kind, provided that the above copyright notice and this paragraph are
  1752.    included on all such copies and derivative works.  However, this
  1753.    document itself may not be modified in any way, such as by removing
  1754.    the copyright notice or references to the Internet Society or other
  1755.    Internet organizations, except as needed for the purpose of
  1756.    developing Internet standards in which case the procedures for
  1757.    copyrights defined in the Internet Standards process must be
  1758.    followed, or as required to translate it into languages other than
  1759.    English.
  1760.  
  1761.    The limited permissions granted above are perpetual and will not be
  1762.    revoked by the Internet Society or its successors or assigns.
  1763.  
  1764.    This document and the information contained herein is provided on an
  1765.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  1766.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  1767.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  1768.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  1769.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  1770.  
  1771. Acknowledgement
  1772.  
  1773.    Funding for the RFC Editor function is currently provided by the
  1774.    Internet Society.
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. Ramsdell                    Standards Track                    [Page 32]
  1795.  
  1796.