Internet-Draft | JMAP extension for S/MIME | July 2021 |
Melnikov | Expires 27 January 2022 | [Page] |
This document specifies an extension to JMAP for returning S/MIME signature verification status.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 27 January 2022.¶
Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
[RFC8621] is a JSON based application protocol for synchronising email data between a client and a server.¶
This document describes an extension to JMAP for returning S/MIME [RFC8551] signature verification status, without requiring a JMAP client to download the signature body part and all signed body parts (when multipart/signed media type is used) or to download and decode CMS (when application/pkcs7-mime media type is used).¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].¶
Type signatures, examples, and property descriptions in this document follow the conventions established in Section 1.1 of [RFC8620]. Data types defined in the core specification are also used in this document.¶
The capabilities object is returned as part of the standard JMAP Session object; see the JMAP spec. Servers supporting _this_ specification MUST add a property called "urn:ietf:params:jmap:smimeverify" to the capabilities object.¶
The value of this property is an empty object in both the JMAP session _capabilities_ property and an account's _accountCapabilities_ property.¶
[RFC8621] defines Email/get method for retrieving message specific information. This document defines the following pseudo values in the _properties_ argument:¶
The "smimeStatus" response property is defined as follows:¶
smimeStatus: "String|null". null signifies that the message doesn't contain any signature. This property contains the S/MIME signature and certificate verification status calculated according to [RFC8551] and [RFC8550]. Possible string values of the property are listed below. Servers MAY return other values not defined below. Client MUST treat unrecognized values as "unknown" or "signed/failed". Note that the value of this property might change over time.¶
The "smimeStatusAtDelivery" response property has the same syntax as "smimeStatus", but calculated at the "receivedAt" date/time. Unlike "smimeStatus", the "smimeStatusAtDelivery" response property value is immutable. "smimeStatusAtDelivery" allows clients to compare S/MIME signature verification status at delivery with the current status as returned by "smimeStatus", for example it helps to answer questions like "was the signature valid at the time of delivery?".¶
The "smimeErrors" response property is defined as follows:¶
smimeErrors: "String[]|null". null signifies that the message doesn't contain any signature or that there were no errors when verifying S/MIME signature. (I.e. this property is non null only when the corresponding "smimeStatus" response property value is "signed/failed".) Each string in the array is a human readable description (in the language specified in Content-Language header field, if any) of a problem with the signature or the signing certificate. (See Section 3.8 of [RFC8620] in regards to how this is affected by the language selection.) For example, the signing certificate might be expired and the message From email address might not correspond to any of the email addresses in the signing certificate. Or the certificate might be expired and the JMAP server might be unable to retrieve CRL for the certificate. In both of these cases there would be 2 elements in the array.¶
The "smimeVerifiedAt" response property is defined as follows:¶
smimeVerifiedAt: "UTCDate|null" (server-set). null signifies that the message doesn't contain any S/MIME signature or that there is a signature, but there was no attempt to verify it. In all other cases it is set to the date and time of when S/MIME signature was most recently verified. Note that a request to fetch "smimeStatus" and/or "smimeErrors" would force this response property to be set to a non null value, if S/MIME signature exists.¶
"smimeStatus" and "smimeErrors" values are calculated at the time the corresponding JMAP request was processed (but see below about result caching), not at the time when the message was generated (according to it's Date header field value). In all cases "smimeVerifiedAt" is set to time when "smimeStatus" and "smimeErrors" were last updated. As recalculating these values is expensive for the server they MAY be cached for up to 10 minutes from the moment when they were calculated.¶
[RFC8621] defines Email/query method for searching for messages with specific properties. This document defines the following properties of the *FilterCondition* object:¶
IANA is requested to register the "smime" JMAP Capability as follows:¶
Capability Name: "urn:ietf:params:jmap:smimeverify"¶
Specification document: this document¶
Intended use: common¶
Change Controller: IETF¶
Security and privacy considerations: this document, Section 6¶
Server side S/MIME signature verification requires the client to trust server verification code and configuration to perform S/MIME signature verification. For example, if the server is not configured with some Trust Anchors, some messages will have "signed/failed" status instead of "signed/verified".¶
Constant recalculation of S/MIME signature status can result in Denial-of-Service condition. For that reason it is RECOMMENDED to cache results of signature verification for 10 minutes.¶