<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC4055 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4055.xml">
<!ENTITY RFC5754 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5754.xml">
<!ENTITY RFC6485 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6485.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc strict="yes" ?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<rfc category="std" updates="6485" docName="draft-michaelson-signerinfo-01" ipr="trust200902">
  <front>
    <title abbrev="Abbreviated Title">Clarifying RPKI use of CMS SignerInfo"
    </title>

    <author fullname="George Michaelson" initials="G.G." role="editor" surname="Michaelson">
      <organization>APNIC</organization>
      <address>
        <postal>
          <street>6 Cordelia St, South Brisbane</street>
          <city>Brisbane</city>
          <region>Queensland</region>
          <code>4101</code>
          <country>AU</country>
        </postal>
        <phone>+61 7 3858 3150</phone>
        <email>ggm@apnic.net</email>
      </address>
    </author>
    <author fullname="Geoff Huston" initials="G.I." surname="Huston">
      <organization>APNIC</organization>
      <address>
        <email>gih@apnic.net</email>
      </address>
    </author>

    <date month="January" year="2014" />

    <area>Routing</area>

    <workgroup>Internet Engineering Task Force</workgroup>

    <abstract>
      <t>RFC6485 section 2 mandated a single CMS OID sha256withRSAEncryption from RFC4055 for use in the
	 CMS SignerInfo field.  This draft updates RFC6485 and extends it to permit the correct CMS use which 
	 includes an option of rsaEncryption for the SignerInfo field.  </t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t><xref target="RFC6485">RFC 6485</xref> defines The Profile for Algorithms and Key Sizes for
          Use in the Resource Public Key Infrastructure (RPKI). In that document, Section 2 specifies
	  a single signature algorithm (SHA-256) and a single CMS OID, sha256withRSAEncryption, 
	  to be used for the SignerInfo field of the CMS object.  </t>
      <t>A closer reading of the relevant RFCs <xref target="RFC4055">RFC 4055</xref> and <xref target="RFC5754">RFC 5754</xref> 
	  identified that the CMS SignerInfo field must support use of the rsaEncryption OID for 
	  full conformance with the CMS specifications, and the normative references
	  in RFC 6485 inherit the requirement.  </t>

      <t>To ensure full conformance with the CMS specifications, RFC 6485 is updated by this draft. All of RFC 6485 applies
	 except for a change to the SignerInfo field.  </t>

      <section title="Requirements Language">
        <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">RFC 2119</xref>.</t>
     </section>
    </section>

    <section anchor="Revision" title="Revised CMS SignerInfo">
      <?rfc needLines="15" ?>
      <t>In RFC 6485 Section 2 the following sentence:</t>
      <t><list style="empty">
          <t>The Object Identifier (OID) sha256withRSAEncryption from [RFC4055] MUST be used.</t></list></t>
      <t>Is replaced by:</t>
      <t><list><t>One of the Object Identifiers (OID) rsaEncryption or sha256WithRSAEncryption from [RFC4055] MUST be used.  RPKI implementations MUST support rsaEncryption for the signatureAlgorithm field and SHOULD support sha256WithRSAEncryption.</t></list></t>
    </section>

    <section anchor="Compliance" title="Current Systems Behaviour">
      <t>All known RPKI CA implementations already do what this draft recommends.
      </t>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t>Andrew Chi and David Mandelberg discovered this problem.
      </t>
      <t>Russ Housley documented the RFC chain back to 2630.
      </t>
      <t>This draft reflects a discussion between Rob Austein and Matt Lepinski on the SIDR
	 Working group mailing list and a private communication between Rob Austein and Geoff Huston.
      </t>
    </section>

    <!-- Possibly a 'Contributors' section ... -->

    <section anchor="IANA" title="IANA Considerations">
      <t>This memo includes no request to IANA.</t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>By conforming more closely to the CMS specifications, RPKI CMS objects are less likely to be rejected as non-conformant with the standards. No change is made to the cryptographic status of the CMS objects produced.</t>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <references title="Normative References">

      &RFC2119;

      &RFC6485;

      &RFC4055;

      &RFC5754;

    </references>

    <references title="Informative References">
      <reference anchor="AUSTEIN"
                 target="http://www.ietf.org/mail-archive/web/sidr/current/msg04813.html">
        <front>
          <title>RFC 6485 is inconsistent with base CMS specifications</title>
          <author initials="SR" surname="Austein">
          </author>
          <date year="2012" />
        </front>
      </reference>
    </references>

    <!-- Change Log
v01 2014-02-07 GGM    SRA's comments 
v00 2014-01-20 GGM    Initial version -->
  </back>
</rfc>
