<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>
<?rfc rfcedstyle="yes"?>
<?rfc subcompact="no"?>
<?rfc symrefs="yes"?>
<?rfc comments="yes" ?>
<?rfc inline="yes" ?>

<rfc ipr="trust200902" category="info" docName='draft-ietf-acme-email-smime-00'>
  <front>
    <title abbrev="ACME for S/MIME">
      Extensions to Automatic Certificate Management Environment for end user S/MIME certificates
    </title>
    <author initials="A." surname="Melnikov" fullname="Alexey Melnikov">
      <organization>Isode Ltd</organization>
      <address>
	<postal>
	  <street>14 Castle Mews</street>
	  <city>Hampton</city>
	  <region>Middlesex</region>
	  <code>TW12 2NP</code>
	  <country>UK</country>
	</postal>
	<email>Alexey.Melnikov@isode.com</email>
      </address>
    </author>
      
    <date year="2017" />
    
    <keyword>ACME</keyword>
      
    <abstract>

    <t>
    This document specifies identifiers and challenges required to enable
    the Automated Certificate Management Environment (ACME) to issue
    certificates for use for email recipients
    that want to use S/MIME.
    </t>
	
    </abstract>
    
  </front>
  <middle>

    <section title="Introduction">

        <t>
        <xref target="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.
        </t>
      
        <t>
        This document describes an extension to ACME for use by S/MIME.
        <xref target="smime"/> defines extensions for issuing end user S/MIME <xref target="RFC5751"/> certificates.
        </t>

      <!--
        <t>
        </t>
        -->
      
    </section>
    
    <section title="Conventions Used in This Document">
      
      <t>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
	    <xref target="RFC2119"/>.</t>

    </section>

    <section title="Use of ACME for issuing end user S/MIME certificates" anchor="smime">

      <t>
      <xref target="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.
      </t>

      <t>
      This document defines a new Identifier Type "email" which corresponds to
      an (all ASCII) email address <xref target="RFC5321"/>. This can be used with S/MIME or
      other similar service that requires posession of a certificate tied to an email address.
      </t>
      
      <t>
      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]]
      
        <list style='numbers'>

          <t>
          ACME server generates an email message with the subject containing "ACME &lt;token-part1&gt;",
          where &lt;token-part1&gt; is the base64url encoded first part of the token,
          which contains at least 64 bit of entropy. The second part of the token (token-part2,
          which also contains at least 64 bit of entropy) is returned over HTTPS to the ACME client.
          ACME client concatenates "token-part1" and "token-part2" to create "token", calculates
          key-authz (as per Section 8.1 of <xref target="I-D.ietf-acme-acme"/>), then included the base64url encoded
          SHA-256 digest [FIPS180-4] of the key authorization in a response email message.
          The response email message has a single text/plain MIME body part.
          [[Do we need to handle text/html or multipart/alternative? Simplicity suggests "no".]]
          </t>

          <!--
          <t>
          </t>
          -->

        </list>
      </t>

      <t>[[Do we need a proof that ACME client can submit email on behalf of the user, not just read the challenge using IMAP?]]</t>

    </section>

    <section title="Open Issues">

      <t>
        [[This section should be empty before publication]]

        <!--
        <list style='numbers'>

          <t>
          </t>

        </list>
          -->
      </t>

    </section>
    
      
    <section title="IANA Considerations">

      <t>
        IANA is requested to register a new Identifier Type "email" which corresponds to an (all ASCII) email address <xref target="RFC5321"/>.
      </t>

      <t>
        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.
      </t>
    
    </section>

    <section title="Security Considerations" anchor="seccons">

      <t>TBD.</t>

    </section>
    
  </middle>
  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?> <!-- Keywords -->
      <?rfc include="reference.RFC.5321"?> <!-- SMTP -->
      <?rfc include="reference.RFC.5751"?> <!-- S/MIME -->
      <?rfc include="reference.RFC.7515"?> <!-- JSON Web Signature (JWS) -->
      
<reference anchor="I-D.ietf-acme-acme">
<front>
<title>
Automatic Certificate Management Environment (ACME)
</title>
<author initials="R" surname="Barnes" fullname="Richard Barnes">
<organization/>
</author>
<author initials="J" surname="Hoffman-Andrews" fullname="Jacob Hoffman-Andrews">
<organization/>
</author>
<author initials="J" surname="Kasten" fullname="James Kasten">
<organization/>
</author>
<date month="March" day="13" year="2017"/>
<abstract>
<t>
Certificates in PKI using X.509 (PKIX) are used for a number of purposes, the most significant of which is the authentication of domain names. Thus, certificate authorities in the Web PKI are trusted to verify that an applicant for a certificate legitimately represents the domain name(s) in the certificate. Today, this verification is done through a collection of ad hoc mechanisms. This document describes a protocol that a certification authority (CA) and an applicant can use to automate the process of verification and certificate issuance. The protocol also provides facilities for other certificate management functions, such as certificate revocation.
</t>
</abstract>
</front>
<seriesInfo name="Internet-Draft" value="draft-ietf-acme-acme-06"/>
<format type="TXT" target="http://www.ietf.org/internet-drafts/draft-ietf-acme-acme-06.txt"/>
</reference>

    </references>

<!--    
    <references title="Informative References">
    </references>
-->

<!--
    <section title="Acknowledgements">
	
      <t>Thank you to Steve Kille and David Wilson for suggestions, comments and corrections on this document.</t>

      <t>David Wilson came up with the idea of defining a new Content-Type header field parameter to distinguish
      forwarded messages from inner header field protection constructs.</t>
      
    </section>
-->    
    
  </back>
</rfc>
