Internet-Draft | CSRAttrs | October 2021 |
Richardson, et al. | Expires 25 April 2022 | [Page] |
Enrollment over Secure Transport (EST) is ambiguous in specification of the CSR Attributes Response. This has resulted in implementation challenges and implementor confusion. This document updates EST and clarifies how the CSR Attributes Response can be used by an EST server to specify both CSR attribute OIDs and also CSR attribute values that the server expects the client to include in its CSR request.¶
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 25 April 2022.¶
Copyright (c) 2021 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 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.¶
Enrollment over Secure Transport [RFC7030] (EST) has been used in a wide variety of applications. In particular, [RFC8994] and [RFC8995] describe a way to use it in order to build out an autonomic control plane (ACP) [RFC8368].¶
The ACP requires that each node be given a very specific SubjectAltName. So, the solution was for the EST server to use section 2.6 of [RFC7030] to convey to the EST client the actual SubjectAltName that will end up in its certificate.¶
As a result of some implementation challenges, it came to light that this particular way of using the CSR attributes was not universally agreed upon, and in fact runs contrary to section 2.6, which says that the CSR attributes "provide additional descriptive information that the EST server cannot access itself" (when, in this case, it is the EST server and not the EST client that has access to this information).¶
In particular, it is not universally agreed that a CSR Attributes response can be used by an EST server to specify both attribute OIDs and attribute values. This document, therefore, updates section 2.6 to define this behavior.¶
This document also updates section 4.5 to include revised ASN.1 that covers all uses and is backward compatible with the existing use.¶
Additional examples are provided in an appendix.¶
The ASN.1 for CSR Attributes as defined in EST section 4.5.2 is:¶
CsrAttrs ::= SEQUENCE SIZE (0..MAX) OF AttrOrOID AttrOrOID ::= CHOICE (oid OBJECT IDENTIFIER, attribute Attribute } Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { type ATTRIBUTE.&id({IOSet}), values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) }¶
That section also states the following:¶
the values indicating the particular attributes desired to be included in the resulting certificate's extensions¶
This has been interpreted by some implementations as meaning that the CSR Attributes response can only include values for the attribute OIDs that the client should include in its CSR, and cannot include the actual values of those attributes. This is further reinforced by the example:¶
Attribute: type = extensionRequest (1.2.840.113549.1.9.14) value = macAddress (1.3.6.1.1.1.1.22)¶
This example illustrates that the 'value' specified is an attribute OID, for example the macAddress OID, and not the value of the attribute itself.¶
There is no clearly documented mechanism with supporting examples that specifies how a CSR Attributes response can include a value for a given attribute such as SubjectAltName.¶
EST section 4.5.2 also states the following:¶
The structure of the CSR Attributes Response SHOULD, to the greatest extent possible, reflect the structure of the CSR it is requesting.¶
This statement aligns closely with the goal of this document. Additionally, EST Extensions [RFC8295] Appendix A has an informative appendix that outlines how a full CSR can be included in the CSR Attributes response.¶
This is option one.¶
This document defines how a CSR Attributes response is aligned with the PKCS#10 'CertificationRequestInfo' structure. The CSR Attributes response includes a PKCS#10 CSR structure that optionally includes any required values for included attributes. The following formatting rules apply to the CSR Attributes PKCSC#10 'CertificationRequestInfo' structure included in a CSR Attributes response:¶
TODO Rule for multiple attributes. RFC 2986 and 5967 do not describe how handle conflicting attributes. There was a suggestion to not allow more than one instance of an attribute. However, you can have multiple SubjectAltNames...¶
There is no defined OID for the 'subject' field. An EST server can specify 'subject' field values in a CSR Attributes response by including all required relative distinguished names as a sequence of OIDs, for example:¶
SEQUENCE { OBJECT IDENTIFIER commonName (2 5 4 3) UTF8String "example.com" } SEQUENCE { OBJECT IDENTIFIER serialNumber (2 5 4 5) PrintableString "EXAMPLE123' }¶
This is option two.¶
This would just add a value to the SEQUENCE:¶
OBJECT challengePassword SEQUENCE OBJECT subjectAltName SET OBJECT someACPgoo SEQUENCE OBJECT id-ecPublicKey SET OBJECT secp384r1 OBJECT ecdsa-with-SHA384¶
For example:¶
0 30: SEQUENCE { 2 28: SEQUENCE { 4 3: OBJECT IDENTIFIER subjectAltName (2 5 29 17) 9 21: SET { 11 19: [1] { 13 17: UTF8String 'hello@example.com' : } : } : } : }¶
All security considertions from EST [RFC7030] section 6 are applicable.¶
An EST server may use this mechanism to instruct the EST client about the identities it should include in the CSR it sends as part of enrollment. The client may only be aware of its IDevID Subject, which includes a manufacturer serial number. The EST server can use this mechanism to tell the client to include a specific fully qualified domain name in the CSR in order to complete domain ownership proofs required by the CA. Additionally, the EST server may deem the manufacturer serial number in an IDevID as personally identifiable information, and may want to specify a new random opaque identifier that the pledge should use in its CSR. This may be desirable if the CA and EST server have different operators.¶
None.¶
TODO¶