Internet-Draft | JMAP extension for S/MIME | March 2023 |
Melnikov | Expires 14 September 2023 | [Page] |
This document specifies an extension to JMAP for sending S/MIME signed and S/MIME encrypted messages.¶
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 14 September 2023.¶
Copyright (c) 2023 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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised 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 sending S/MIME signed and encrypted messages . It allows JMAP server to sign/encrypt messages on user's behalf.¶
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].¶
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:smime-advanced" 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/set method for creating new email messages. This document defines the following additional request arguments that can be used to create S/MIME signed and/or encrypted messages:¶
smimeSign: "Boolean" (default: false). If included and has the value "true", this requests the JMAP server to create an S/MIME signed message from the message constructed according to other specified arguments (the "original message"). This is done by encapsulating the original message either inside application/pkcs7-mime [RFC8551] or multipart/signed [RFC1847] container. (smimeSignOpaque argument (see below) controls which of the two mechanisms is used.) The signature's private key/certificate is associated with the email address in the Sender header field, if present; otherwise, it is associated with the email address in the From header field, if present.¶
If multiple addresses are present in one of these header fields, or there is more than one Sender/From header field, the server SHOULD reject the Email/set as invalid with the "invalidEmail" error code; otherwise, it MUST take the first address in the last Sender/From header field. If JMAP account is not authorized to sign message as the selected sender (as above), it SHOULD return "signedSenderNotAllowed" error code.¶
If both "smimeSign" and "smimeEncrypt" are set to true, the message is first signed and then the signed version is encrypted (in that order).¶
(Note that this extension doesn't allow management of private keys/certificates. How private keys are managed or configured for a particular user is out of scope for this document.)¶
[RFC8621] defines Email/get method for retrieving information about email messages. This document defines the following additional request arguments of the "bodyProperties" object that can be used to facilitate decryption of S/MIME encrypted messages:¶
IANA is requested to register the "smime" JMAP Capability as follows:¶
Capability Name: "urn:ietf:params:jmap:smime-advanced"¶
Specification document: this document¶
Intended use: common¶
Change Controller: IETF¶
Security and privacy considerations: this document, Section 7¶
JMAP Error Code: signedSenderNotAllowed¶
Intended use: common¶
Change controller: IETF¶
Reference: This document, Section 4¶
Description: JMAP account is not authorized to S/MIME sign message as the specified sender.¶
JMAP Error Code: validEncryptionKeyNotFound¶
Intended use: common¶
Change controller: IETF¶
Reference: This document, Section 4¶
Description: S/MIME encrypted message can't be generated because no valid certificate (non expired and non revoked) can be found for one of recipients.¶
This JMAP extension assumes trust between the user and the JMAP server for purposes of signing and encrypting messages on user's behalf.¶
This JMAP extension also relies on access to user's (or organization's) addressbook which contain up-to-date certificates for recipients.¶
This JMAP extension doesn't support management of user's private keys and corresponding certificates.¶