Network Working Group | A. Melnikov |
Internet-Draft | Isode Ltd |
Intended status: Informational | June 2, 2017 |
Expires: December 4, 2017 |
Extensions to Automatic Certificate Management Environment for email TLS and S/MIME
draft-melnikov-acme-email-tls-smime-00
This document specifies identifiers and challenges required to enable the Automated Certificate Management Environment (ACME) to issue certificates for use by TLS email services and for email recipients that want to use S/MIME.
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 http://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 December 4, 2017.
Copyright (c) 2017 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 (http://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.
[I-D.ietf-acme-acme] is a mechanism for automating certificate management on the Internet. It enables administrative entities to prove effective control over resources like domain names, and automates the process of generating and issuing certificates.
This document describes extensions to ACME for use by email services. Section 3 defines extensions for how email services (such as SMTP, IMAP) can get certificates for use with TLS. Section 4 defines extensions for issuing end user S/MIME [RFC5751] certificates.
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].
SMTP [RFC5321] (including SMTP submission) and IMAP [RFC3501] servers use TLS to provide server identity authentication, data confidentiality and integrity services. Such TLS protected email services either use STARTTLS command or run on a separate TLS-protected port.
[I-D.ietf-acme-acme] defines several challenge types that can be extended for use by email services. This document also defines some new challenge types specific to SMTP and IMAP.
In order to use these challenges JWS [RFC7515] object used by [I-D.ietf-acme-acme] is extended. The following extra requirements are in addition to requirements on JWS objects sent in ACME defined in Section 6.2 of [I-D.ietf-acme-acme]:
For example, if the client were to respond to the "tls-sni-email-00" challenge, it would send the following request:
POST /acme/authz/asdf/0 HTTP/1.1 Host: example.com Content-Type: application/jose+json { "protected": base64url({ "alg": "ES256", "kid": "https://example.com/acme/acct/1", "nonce": "Q_s3MWoqT05TrdkM2MTDcw", "url": "https://example.com/acme/authz/asdf/0", "service": "smtp", "port": 25 }), "payload": base64url({ "type": "tls-sni-email-00", "keyAuthorization": "IlirfxKKXA...vb29HhjjLPSggQiE" }), "signature": "7cbg5JO1Gf5YLjjF...SpkUfcdPai9uVYYU" }
Figure 1
The "service" JWS header parameter specifies the service for which TLS server certificate should be issued. Valid values come from "Service Names and Transport Protocol Port Numbers" IANA registry <https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml>. ACME server MAY include SRV-ID [RFC6125] subjectAltNames in issued certificates.
The "port" JWS header parameter specifies the TCP port number where the corresponding service is running.
[[This parameter might have applicability beyond email services.]]
"tls-sni-email-00" is very similar to "tls-sni-01" defined in Section 8.3 of [I-D.ietf-acme-acme].
The difference between processing of "tls-sni-email-00" and "tls-sni-01" are listed below:
"dns-email-00" is very similar to "dns-01" defined in Section 8.4 of [I-D.ietf-acme-acme].
The difference between processing of "dns-email-00" and "dns-01" are listed below:
For "capability-smtp-00" challenge, ACME client (== SMTP server) constructs a key authorization from the "token" value provided in the challenge and the client's account key. The client then computes the SHA-256 digest [FIPS180-4] of the key authorization. SMTP server than returns the base64url encoding of this digest as a value of the "ACME" EHLO capability:
250-smtp.example.com 250-SIZE 250-8BITMIME 250-BINARYMIME 250-PIPELINING 250-HELP 250-DSN 250-CHUNKING 250-AUTH SCRAM-SHA-1 250-AUTH=SCRAM-SHA-1 250-STARTTLS 250-ACME gfj9Xq...Rg85nM 250-MT-PRIORITY 250 ENHANCEDSTATUSCODES
Figure 2
Similarly, "capability-imap-00" challenge, ACME client (== IMAP server) constructs a key authorization from the "token" value provided in the challenge and the client's account key. The client then computes the SHA-256 digest [FIPS180-4] of the key authorization. SMTP server than returns the base64url encoding of this digest as a value of the "ACME" capability:
* OK [CAPABILITY IMAP4rev1 LOGINDISABLED LITERAL+ ENABLE STARTTLS ACME=gfj9Xq...Rg85nM] Example IMAP4rev1 server ready or * CAPABILITY IMAP4rev1 LOGINDISABLED LITERAL+ ENABLE STARTTLS ACME=gfj9Xq...Rg85nM
Figure 3
[I-D.ietf-acme-acme] defines "dns" Identifier Type that is used to verify that a particular entity has control over a domain or specific service associated with the domain. In order to be able to issue end-user S/MIME certificates, ACME needs a new Identifier Type that proves ownership of an email address.
This document defines a new Identifier Type "email" which corresponds to an (all ASCII) email address [RFC5321]. This can be used with S/MIME or other similar service that requires posession of a certificate tied to an email address.
A new challenge type "email-reply-00" is used with "email" Identifier Type, which provides proof that an ACME client has control over an email address: [[Very rough outline follows]]
[[Do we need a proof that ACME client can submit email on behalf of the user, not just read the challenge using IMAP?]]
[[This section should be empty before publication]]
IANA is requested to register the following ACME challenge types that are used with Identifier Type "dns": "tls-sni-email", "dns-email", "capability-smtp" and "capability-imap". The reference for all of them is this document.
IANA is requested to register a new Identifier Type "email" which corresponds to an (all ASCII) email address [RFC5321].
And finally, IANA is requested to register the following ACME challenge types that are used with Identifier Type "email": "email-reply". The reference for it is this document.
TBD.