<?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.2.9 -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
]>

<?rfc toc="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>

<rfc ipr="trust200902" docName="draft-ietf-acme-ip-05" category="std">

  <front>
    <title abbrev="ACME-IP">ACME IP Identifier Validation Extension</title>

    <author initials="R.B." surname="Shoemaker" fullname="Roland Bracewell Shoemaker">
      <organization abbrev="ISRG">Internet Security Research Group</organization>
      <address>
        <email>roland@letsencrypt.org</email>
      </address>
    </author>

    <date year="2019" month="February" day="14"/>

    <area>General</area>
    <workgroup>ACME Working Group</workgroup>
    

    <abstract>


<t>This document specifies identifiers and challenges required to enable the Automated Certificate Management Environment (ACME) to issue certificates for IP addresses.</t>



    </abstract>


  </front>

  <middle>


<section anchor="introduction" title="Introduction">

<t>The Automatic Certificate Management Environment (ACME) <xref target="I-D.ietf-acme-acme"/> only defines challenges for validating control of DNS host name identifiers which limits its use to being used for issuing certificates for DNS identifiers. In order to allow validation of IPv4 and IPv6 identifiers for inclusion in X.509 certificates this document specifies how challenges defined in the original ACME specification and the TLS-ALPN extension specification <xref target="I-D.ietf-acme-tls-alpn"/> can be used to validate IP identifiers.</t>

</section>
<section anchor="terminology" title="Terminology">

<t>In this document, the key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” are to be interpreted as described in BCP 14, <xref target="RFC2119"/>.</t>

</section>
<section anchor="ip-identifier" title="IP Identifier">

<t><xref target="I-D.ietf-acme-acme"/> only defines the identifier type “dns” which is used to refer to fully qualified domain names. If a ACME server wishes to request proof that a user controls a IPv4 or IPv6 address it MUST create an authorization with the identifier type “ip”. The value field of the identifier MUST contain the textual form of the address as defined in <xref target="RFC1123"/> Section 2.1 for IPv4 and in <xref target="RFC5952"/> Section 4 for IPv6.</t>

<t>An identifier for the IPv6 address 2001:db8::1 would be formatted like so:</t>

<figure><artwork><![CDATA[
{"type": "ip", "value": "2001:db8::1"}
]]></artwork></figure>

</section>
<section anchor="identifier-validation-challenges" title="Identifier Validation Challenges">

<t>IP identifiers MAY be used with the existing “http-01” and “tls-alpn-01” challenges from <xref target="I-D.ietf-acme-acme"/> Section 8.3 and <xref target="I-D.ietf-acme-tls-alpn"/> Section 3 respectively. To use IP identifiers with these challenges their initial DNS resolution step MUST be skipped and the IP address used for validation MUST be the value of the identifier.</t>

</section>
<section anchor="http-challenge" title="HTTP Challenge">

<t>For the “http-01” challenge the Host header MUST be set to the IP address being used for validation per <xref target="RFC7230"/>. The textual form of this address MUST be those defined in <xref target="RFC1123"/> Section 2.1 for IPv4 and in <xref target="RFC5952"/> Section 4 for IPv6.</t>

</section>
<section anchor="tls-with-application-level-protocol-negotiation-tls-alpn-challenge" title="TLS with Application Level Protocol Negotiation (TLS ALPN) Challenge">

<t>For the “tls-alpn-01” challenge the subjectAltName extension in the validation certificate MUST contain a single iPAddress which matches the address being validated. As <xref target="RFC6066"/> does not permit IP addresses to be used in the SNI extension HostName the server MUST instead use the IN-ADDR.ARPA <xref target="RFC1034"/> or IP6.ARPA <xref target="RFC3596"/> reverse mapping of the IP address as the HostName value instead of the literal IP address. For example if the IP address being validated is 2001:db8::1 the SNI HostName should contain “1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.”.</t>

</section>
<section anchor="dns-challenge" title="DNS Challenge">

<t>The existing “dns-01” challenge MUST NOT be used to validate IP identifiers.</t>

</section>
<section anchor="iana-considerations" title="IANA Considerations">

<section anchor="identifier-types" title="Identifier Types">

<t>Adds a new type to the Identifier list defined in Section 9.7.7 of <xref target="I-D.ietf-acme-acme"/> with the label “ip” and reference I-D.ietf-acme-ip.</t>

</section>
<section anchor="challenge-types" title="Challenge Types">

<t>Adds the value “ip” to the Identifier Type column in the Validation Methods list defined in Section 9.7.8 of <xref target="I-D.ietf-acme-acme"/> for the “http-01” and “tls-alpn-01” challenges.</t>

</section>
</section>
<section anchor="acknowledgments" title="Acknowledgments">

<t>The author would like to thank those who contributed to this document and offered editorial and technical input, especially Jacob Hoffman-Andrews and Daniel McCarney.</t>

</section>


  </middle>

  <back>

    <references title='Normative References'>





<reference  anchor="RFC1034" target='https://www.rfc-editor.org/info/rfc1034'>
<front>
<title>Domain names - concepts and facilities</title>
<author initials='P.V.' surname='Mockapetris' fullname='P.V. Mockapetris'><organization /></author>
<date year='1987' month='November' />
<abstract><t>This RFC is the revised basic definition of The Domain Name System.  It obsoletes RFC-882.  This memo describes the domain style names and their used for host address look up and electronic mail forwarding.  It discusses the clients and servers in the domain name system and the protocol used between them.</t></abstract>
</front>
<seriesInfo name='STD' value='13'/>
<seriesInfo name='RFC' value='1034'/>
<seriesInfo name='DOI' value='10.17487/RFC1034'/>
</reference>



<reference  anchor="RFC1123" target='https://www.rfc-editor.org/info/rfc1123'>
<front>
<title>Requirements for Internet Hosts - Application and Support</title>
<author initials='R.' surname='Braden' fullname='R. Braden' role='editor'><organization /></author>
<date year='1989' month='October' />
<abstract><t>This RFC is an official specification for the Internet community.  It incorporates by reference, amends, corrects, and supplements the primary protocol standards documents relating to hosts.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='STD' value='3'/>
<seriesInfo name='RFC' value='1123'/>
<seriesInfo name='DOI' value='10.17487/RFC1123'/>
</reference>



<reference  anchor="RFC2119" target='https://www.rfc-editor.org/info/rfc2119'>
<front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author initials='S.' surname='Bradner' fullname='S. Bradner'><organization /></author>
<date year='1997' month='March' />
<abstract><t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='2119'/>
<seriesInfo name='DOI' value='10.17487/RFC2119'/>
</reference>



<reference  anchor="RFC3596" target='https://www.rfc-editor.org/info/rfc3596'>
<front>
<title>DNS Extensions to Support IP Version 6</title>
<author initials='S.' surname='Thomson' fullname='S. Thomson'><organization /></author>
<author initials='C.' surname='Huitema' fullname='C. Huitema'><organization /></author>
<author initials='V.' surname='Ksinant' fullname='V. Ksinant'><organization /></author>
<author initials='M.' surname='Souissi' fullname='M. Souissi'><organization /></author>
<date year='2003' month='October' />
<abstract><t>This document defines the changes that need to be made to the Domain Name System (DNS) to support hosts running IP version 6 (IPv6).  The changes include a resource record type to store an IPv6 address, a domain to support lookups based on an IPv6 address, and updated definitions of existing query types that return Internet addresses as part of additional section processing.  The extensions are designed to be compatible with existing applications and, in particular, DNS implementations themselves.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='STD' value='88'/>
<seriesInfo name='RFC' value='3596'/>
<seriesInfo name='DOI' value='10.17487/RFC3596'/>
</reference>



<reference  anchor="RFC4291" target='https://www.rfc-editor.org/info/rfc4291'>
<front>
<title>IP Version 6 Addressing Architecture</title>
<author initials='R.' surname='Hinden' fullname='R. Hinden'><organization /></author>
<author initials='S.' surname='Deering' fullname='S. Deering'><organization /></author>
<date year='2006' month='February' />
<abstract><t>This specification defines the addressing architecture of the IP Version 6 (IPv6) protocol.  The document includes the IPv6 addressing model, text representations of IPv6 addresses, definition of IPv6 unicast addresses, anycast addresses, and multicast addresses, and an IPv6 node's required addresses.</t><t>This document obsoletes RFC 3513, &quot;IP Version 6 Addressing Architecture&quot;.   [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='4291'/>
<seriesInfo name='DOI' value='10.17487/RFC4291'/>
</reference>



<reference  anchor="RFC4648" target='https://www.rfc-editor.org/info/rfc4648'>
<front>
<title>The Base16, Base32, and Base64 Data Encodings</title>
<author initials='S.' surname='Josefsson' fullname='S. Josefsson'><organization /></author>
<date year='2006' month='October' />
<abstract><t>This document describes the commonly used base 64, base 32, and base 16 encoding schemes.  It also discusses the use of line-feeds in encoded data, use of padding in encoded data, use of non-alphabet characters in encoded data, use of different encoding alphabets, and canonical encodings.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='4648'/>
<seriesInfo name='DOI' value='10.17487/RFC4648'/>
</reference>



<reference  anchor="RFC5952" target='https://www.rfc-editor.org/info/rfc5952'>
<front>
<title>A Recommendation for IPv6 Address Text Representation</title>
<author initials='S.' surname='Kawamura' fullname='S. Kawamura'><organization /></author>
<author initials='M.' surname='Kawashima' fullname='M. Kawashima'><organization /></author>
<date year='2010' month='August' />
<abstract><t>As IPv6 deployment increases, there will be a dramatic increase in the need to use IPv6 addresses in text.  While the IPv6 address architecture in Section 2.2 of RFC 4291 describes a flexible model for text representation of an IPv6 address, this flexibility has been causing problems for operators, system engineers, and users.  This document defines a canonical textual representation format.  It does not define a format for internal storage, such as within an application or database.  It is expected that the canonical format will be followed by humans and systems when representing IPv6 addresses as text, but all implementations must accept and be able to handle any legitimate RFC 4291 format.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='5952'/>
<seriesInfo name='DOI' value='10.17487/RFC5952'/>
</reference>



<reference  anchor="RFC6066" target='https://www.rfc-editor.org/info/rfc6066'>
<front>
<title>Transport Layer Security (TLS) Extensions: Extension Definitions</title>
<author initials='D.' surname='Eastlake 3rd' fullname='D. Eastlake 3rd'><organization /></author>
<date year='2011' month='January' />
<abstract><t>This document provides specifications for existing TLS extensions.  It is a companion document for RFC 5246, &quot;The Transport Layer Security (TLS) Protocol Version 1.2&quot;.  The extensions specified are server_name, max_fragment_length, client_certificate_url, trusted_ca_keys, truncated_hmac, and status_request.  [STANDARDS-TRACK]</t></abstract>
</front>
<seriesInfo name='RFC' value='6066'/>
<seriesInfo name='DOI' value='10.17487/RFC6066'/>
</reference>



<reference  anchor="RFC7230" target='https://www.rfc-editor.org/info/rfc7230'>
<front>
<title>Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing</title>
<author initials='R.' surname='Fielding' fullname='R. Fielding' role='editor'><organization /></author>
<author initials='J.' surname='Reschke' fullname='J. Reschke' role='editor'><organization /></author>
<date year='2014' month='June' />
<abstract><t>The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems.  This document provides an overview of HTTP architecture and its associated terminology, defines the &quot;http&quot; and &quot;https&quot; Uniform Resource Identifier (URI) schemes, defines the HTTP/1.1 message syntax and parsing requirements, and describes related security concerns for implementations.</t></abstract>
</front>
<seriesInfo name='RFC' value='7230'/>
<seriesInfo name='DOI' value='10.17487/RFC7230'/>
</reference>



<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='D' surname='McCarney' fullname='Daniel McCarney'>
    <organization />
</author>

<author initials='J' surname='Kasten' fullname='James Kasten'>
    <organization />
</author>

<date month='December' day='20' year='2018' />

<abstract><t>Public Key Infrastructure X.509 (PKIX) certificates are used for a number of purposes, the most significant of which is the authentication of domain names.  Thus, certification authorities (CAs) 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 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.  RFC EDITOR: PLEASE REMOVE THE FOLLOWING PARAGRAPH: The source for this draft is maintained in GitHub.  Suggested changes should be submitted as pull requests at https://github.com/ietf-wg-acme/acme [1].  Instructions are on that page as well.  Editorial changes can be managed in GitHub, but any substantive change should be discussed on the ACME mailing list (acme@ietf.org).</t></abstract>

</front>

<seriesInfo name='Internet-Draft' value='draft-ietf-acme-acme-18' />
<format type='TXT'
        target='http://www.ietf.org/internet-drafts/draft-ietf-acme-acme-18.txt' />
</reference>



<reference anchor="I-D.ietf-acme-tls-alpn">
<front>
<title>ACME TLS ALPN Challenge Extension</title>

<author initials='R' surname='Shoemaker' fullname='Roland Shoemaker'>
    <organization />
</author>

<date month='August' day='17' year='2018' />

<abstract><t>This document specifies a new challenge for the Automated Certificate Management Environment (ACME) protocol which allows for domain control validation using TLS.</t></abstract>

</front>

<seriesInfo name='Internet-Draft' value='draft-ietf-acme-tls-alpn-05' />
<format type='TXT'
        target='http://www.ietf.org/internet-drafts/draft-ietf-acme-tls-alpn-05.txt' />
</reference>


<reference anchor="FIPS180-4" target="http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf">
  <front>
    <title>NIST FIPS 180-4, Secure Hash Standard</title>
    <author initials="National Institute of Standards and Technology, U.S." surname="Department of Commerce" fullname="NIST">
      <organization></organization>
    </author>
    <date year="2012" month="March"/>
  </front>
</reference>


    </references>




  </back>

<!-- ##markdown-source:
H4sIAEDTZVwAA7VXXXPiOBZ9969QMS8zVbEbyEcnPC2dpDtMJYQFenenpqa2
hC2wNkbySHJoNpX97XuuZIMh3V0zD5NUwkWWru7Huedex3EcOekKMWCd4fXD
LRtN2CgTysmlFIb9gxcy405qxW6/OKEspE7EFwsjngeMDsSjSZTpVPE1VGSG
L10shVvGPF2LWJZx9zxKuRMrbbYDZl0WRbI0A+ZMZV2/273q9iNuBB+wT0IJ
w4too83TyuiqDPrZP/FdqhX7RGtRZB1X2b95oRXu2woblXLAfnU6PWFWG2fE
0kLarkn4LYp45XJtBhGLI4YfqeyATRP2IWGzXIs1fxLGPwj2T3UB7eyD4anY
iKI42qTNasBGygmjhGMzkVZGui2bCiu4SfPaRNrZRGg0m37yC9AiiwEz/oK/
FcJZoVKzLV0CpVGktFkjzM8ClrLpx+te9/SsEXv901rs93pXtXh6fnVRi2f9
q14jXpxd1uL51Xm/Fi+6F83e9/3TLomj+CbZp4n+vV11hY15USp68nE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