idnits 2.17.1 draft-ietf-jmap-smime-03.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- ** There is 1 instance of too long lines in the document, the longest one being 3 characters in excess of 72. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The document date (March 12, 2021) is 1103 days in the past. Is this intentional? Checking references for intended status: Informational ---------------------------------------------------------------------------- No issues found here. Summary: 1 error (**), 0 flaws (~~), 1 warning (==), 1 comment (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group A. Melnikov 3 Internet-Draft Isode Ltd 4 Intended status: Informational March 12, 2021 5 Expires: September 13, 2021 7 S/MIME signature verification extension to JMAP 8 draft-ietf-jmap-smime-03 10 Abstract 12 This document specifies an extension to JMAP for returning S/MIME 13 signature verification status. 15 Status of This Memo 17 This Internet-Draft is submitted in full conformance with the 18 provisions of BCP 78 and BCP 79. 20 Internet-Drafts are working documents of the Internet Engineering 21 Task Force (IETF). Note that other groups may also distribute 22 working documents as Internet-Drafts. The list of current Internet- 23 Drafts is at https://datatracker.ietf.org/drafts/current/. 25 Internet-Drafts are draft documents valid for a maximum of six months 26 and may be updated, replaced, or obsoleted by other documents at any 27 time. It is inappropriate to use Internet-Drafts as reference 28 material or to cite them other than as "work in progress." 30 This Internet-Draft will expire on September 13, 2021. 32 Copyright Notice 34 Copyright (c) 2021 IETF Trust and the persons identified as the 35 document authors. All rights reserved. 37 This document is subject to BCP 78 and the IETF Trust's Legal 38 Provisions Relating to IETF Documents 39 (https://trustee.ietf.org/license-info) in effect on the date of 40 publication of this document. Please review these documents 41 carefully, as they describe your rights and restrictions with respect 42 to this document. Code Components extracted from this document must 43 include Simplified BSD License text as described in Section 4.e of 44 the Trust Legal Provisions and are provided without warranty as 45 described in the Simplified BSD License. 47 Table of Contents 49 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 50 2. Conventions Used in This Document . . . . . . . . . . . . . . 2 51 3. Addition to the capabilities object . . . . . . . . . . . . . 2 52 4. Extension to Email/get for S/MIME signature verification . . 2 53 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 6 54 5.1. JMAP capability registration for "smime" . . . . . . . . 6 55 6. Security Considerations . . . . . . . . . . . . . . . . . . . 7 56 7. Normative References . . . . . . . . . . . . . . . . . . . . 7 57 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 7 59 1. Introduction 61 [RFC8621] is a JSON based application protocol for synchronising 62 email data between a client and a server. 64 This document describes an extension to JMAP for returning S/MIME 65 [RFC8551] signature verification status, without requiring a JMAP 66 client to download the signature body part and all signed body parts 67 (when multipart/signed media type is used) or to download and decode 68 CMS (when application/pkcs7-mime media type is used). 70 2. Conventions Used in This Document 72 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 73 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 74 document are to be interpreted as described in [RFC2119]. 76 3. Addition to the capabilities object 78 The capabilities object is returned as part of the standard JMAP 79 Session object; see the JMAP spec. Servers supporting _this_ 80 specification MUST add a property called "urn:ietf:params:jmap:smime" 81 to the capabilities object. 83 The value of this property is an empty object in both the JMAP 84 session _capabilities_ property and an account's 85 _accountCapabilities_ property. 87 4. Extension to Email/get for S/MIME signature verification 89 [RFC8621] defines Email/get method for retrieving message specific 90 information. This document defines the following pseudo values in 91 the _properties_ argument: 92 o *smimeStatus*: If "smimeStatus" is included in the list of 93 requested properties, it MUST be interpreted by the server as a 94 request to return "smimeStatus" response property. 96 o *smimeErrors*: If "smimeErrors" is included in the list of 97 requested properties, it MUST be interpreted by the server as a 98 request to return "smimeErrors" response property. 99 o *smimeVerifiedAt*: If "smimeVerifiedAt" is included in the list of 100 requested properties, it MUST be interpreted by the server as a 101 request to return "smimeVerifiedAt" response property. 102 o *smimeStatusAtDelivery*: If "smimeStatusAtDelivery" is included in 103 the list of requested properties, it MUST be interpreted by the 104 server as a request to return "smimeStatusAtDelivery" response 105 property. (It effectively the same as "smimeStatus" value calculated 106 at the date/time of deliver, as specified by "receivedAt".) 108 The "smimeStatus" response property is defined as follows: 110 smimeStatus: "String|null". null signifies that the message doesn't 111 contain any signature. This property contains the S/MIME signature 112 and certificate verification status calculated according to [RFC8551] 113 and [RFC8550]. Possible string values of the property are listed 114 below. Servers MAY return other values not defined below. Client 115 MUST treat unrecognized values as "unknown" or "signed/failed". Note 116 that the value of this property might change over time. 118 unknown S/MIME message, but it is neither signed, nor encrypted. 119 This can also be returned for a multipart/signed message which 120 contains unrecognized signing protocol (for example OpenPGP). 122 signed S/MIME signed message, but the signature was not yet 123 verified. Some servers might not attempt to verify signature 124 until a particular message is requested by the client. JMAP 125 servers compliant with this document SHOULD return "signed/ 126 verified" or "signed/failed" instead of this signature status. 128 signed/verified S/MIME signed message and the sender's signature was 129 successfully verified, sender matches the From header field and 130 the sender's certificate (and the certificate chain) is trusted 131 for signing. 133 signed/failed S/MIME signed message, but the signature failed to 134 verify. This might be a policy related decision (message signer 135 doesn't match the From header field), message was modified, the 136 signer's certificate has expired or was revoked, etc. 138 The "smimeStatusAtDelivery" response property is defined as follows 139 has the same syntax as "smimeStatus", but calculated at the 140 "receivedAt" date/time. Unlike "smimeStatus", the 141 "smimeStatusAtDelivery" response property value is immutable. 143 The "smimeErrors" response property is defined as follows: 145 smimeErrors: "String[]|null". null signifies that the message doesn't 146 contain any signature or that there were no errors when verifying 147 S/MIME signature. (I.e. this property is non null only when the 148 corresponding "smimeStatus" response property value is "signed/ 149 failed".) Each string in the array is a human readable description 150 (in the language specified in Content-Language header field, if any) 151 of a problem with the signature or the signing certificate. (See 152 Section 3.8 of [RFC8620] in regards to how this is affected by the 153 language selection.) For example, the signing certificate might be 154 expired and the message From email address might not correspond to 155 any of the email addresses in the signing certificate. Or the 156 certificate might be expired and the JMAP server might be unable to 157 retrieve CRL for the certificate. In both of these cases there would 158 be 2 elements in the array. 160 The "smimeVerifiedAt" response property is defined as follows: 162 smimeVerifiedAt: "UTCDate|null" (server-set). null signifies that the 163 message doesn't contain any S/MIME signature or that there is a 164 signature, but there was no attempt to verify it. In all other cases 165 it is set to the date and time of when S/MIME signature was verified 166 the last time. 168 "smimeStatus" and "smimeErrors" values are calculated at the time the 169 corresponding JMAP request was processed, not at the time when the 170 message was generated (according to it's Date header field value). 171 It MAY be calculated at the time the message was delivered to the 172 mailbox. In all cases "smimeVerifiedAt" is set to time when 173 "smimeStatus" and "smimeErrors" were last updated. As recalculating 174 these values is expensive for the server they MAY be cached for up to 175 10 minutes from the moment when they were calculated. 177 ["Email/get", { 178 "ids": [ "f123u987" ], 179 "properties": [ "mailboxIds", "from", "subject", "date", 180 "smimeStatusAtDelivery", "receivedAt" ] 181 }, "#1"] 183 This will result in the following response: 185 [["Email/get", { 186 "accountId": "abc", 187 "state": "41234123231", 188 "list": [ 189 { 190 id: "f123u457", 191 mailboxIds: { "f123": true }, 192 from: [{name: "Joe Bloggs", email: "joe@bloggs.example.net"}], 193 subject: "Dinner tonight?", 194 date: "2020-07-07T14:12:00Z", 195 smimeStatusAtDelivery: "signed/verified", 196 receivedAt: "2020-07-07T14:15:18Z" 197 } 198 ] 199 }, "#1"]] 201 Example 1: 203 ["Email/get", { 204 "ids": [ "af123u123" ], 205 "properties": [ "mailboxIds", "from", "subject", "date", 206 "smimeStatus", "smimeErrors", "smimeVerifiedAt" ] 207 }, "#1"] 209 This will result in the following response: 211 [["Email/get", { 212 "accountId": "abc", 213 "state": "41234123231", 214 "list": [ 215 { 216 id: "af123u123", 217 mailboxIds: { "f123": true }, 218 from: [{name: "Jane Doe", 219 email: "jdoe@example.com"}], 220 subject: "Company takeover", 221 date: "2020-01-31T23:00:00Z", 222 smimeStatus: "signed/failed", 223 smimeErrors: [ 224 "From email address doesn't match the certificate", 225 "Can't retrieve CRL from the CRL URL"], 226 "smimeVerifiedAt": "2020-03-01T12:11:19Z" 227 } 228 ] 229 }, "#1"]] 231 Example 2: 233 5. IANA Considerations 235 5.1. JMAP capability registration for "smime" 237 IANA is requested to register the "smime" JMAP Capability as follows: 239 Capability Name: "urn:ietf:params:jmap:smime" 241 Specification document: this document 243 Intended use: common 245 Change Controller: IETF 247 Security and privacy considerations: this document, Section 6 249 6. Security Considerations 251 Server side S/MIME signature verification requires the client to 252 trust server verification code and configuration to perform S/MIME 253 signature verification. For example, if the server is not configured 254 with some Trust Anchors, some messages will have "signed/failed" 255 status instead of "signed/verified". 257 Constant recalculation of S/MIME signature status can result in 258 Denial-of-Service condition. For that reason it is RECOMMENDED to 259 cache results of signature verification for 10 minutes. 261 7. Normative References 263 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 264 Requirement Levels", BCP 14, RFC 2119, 265 DOI 10.17487/RFC2119, March 1997, 266 . 268 [RFC8550] Schaad, J., Ramsdell, B., and S. Turner, "Secure/ 269 Multipurpose Internet Mail Extensions (S/MIME) Version 4.0 270 Certificate Handling", RFC 8550, DOI 10.17487/RFC8550, 271 April 2019, . 273 [RFC8551] Schaad, J., Ramsdell, B., and S. Turner, "Secure/ 274 Multipurpose Internet Mail Extensions (S/MIME) Version 4.0 275 Message Specification", RFC 8551, DOI 10.17487/RFC8551, 276 April 2019, . 278 [RFC8620] Jenkins, N. and C. Newman, "The JSON Meta Application 279 Protocol (JMAP)", RFC 8620, DOI 10.17487/RFC8620, July 280 2019, . 282 [RFC8621] Jenkins, N. and C. Newman, "The JSON Meta Application 283 Protocol (JMAP) for Mail", RFC 8621, DOI 10.17487/RFC8621, 284 August 2019, . 286 Author's Address 288 Alexey Melnikov 289 Isode Ltd 290 14 Castle Mews 291 Hampton, Middlesex TW12 2NP 292 UK 294 EMail: Alexey.Melnikov@isode.com