LAMPS Working Group T. Ito Internet-Draft SECOM CO., LTD. Intended status: Standards Track T. Okubo Expires:38 September 2022 DigiCert, Inc. S. Turner sn3rd27 March 2022 General Purpose Extended Key Usage (EKU) for Document Signing X.509 Certificatesdraft-ietf-lamps-documentsigning-eku-01draft-ietf-lamps-documentsigning-eku-02 AbstractRFC 5280RFC5280 specifies several extended keyusagespurpose identifiers (KeyPurposeIds) for X.509 certificates. This document defines a general purpose document signingextended key usageKeyPurposeId for inclusion in the Extended Key Usage (EKU) extension of X.509 public keycertificates which restricts the usage ofcertificates. Document Signing applications may require that thecertificates forEKU extension be present and that a documentsigning.signing KeyPurposeId be indicated in order for the certificate to be acceptable to that Document Signing application. About This Document This note is to be removed before publishing as an RFC. Status information for this document may be found at https://datatracker.ietf.org/doc/draft-ietf-lamps-documentsigning- eku/. Discussion of this document takes place on the Limited Additional Mechanisms for PKIX and SMIME (LAMPS) Working Group mailing list (mailto:spasm@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/spasm/. Source for this draft and an issue tracker can be found at https://github.com/lamps-wg/documentsigning-eku. Status of This Memo 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 on38 September 2022. Copyright Notice Copyright (c) 2022 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 Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . .23 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 3 3. Extended KeyusagePurpose forDocumentSigning .Document Signing . . . . . . . . . .34 3.1. Including the Extended KeyUsage ValuesPurpose for Document Signing in Certificates . . . . . . . . . . . . . . . . . . . . . . 4 4. Using the Extended Key Purpose for Document SigningEKUin a Certificate . . . . . . .4. . . . . . . . . . . . . . . . 5 5. Implications for a Certification Authority . . . . . . . . .56 6. Security Considerations . . . . . . . . . . . . . . . . . . . 6 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . .67 8. References . . . . . . . . . . . . . . . . . . . . . . . . .67 8.1. Normative References . . . . . . . . . . . . . . . . . .67 8.2. Informative References . . . . . . . . . . . . . . . . . 7 Appendix A. ASN.1 Module . . . . . . . . . . . . . . . . . . . .78 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 8 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 8 1. Introduction [RFC5280] specifies several extended keyusagespurpose identifiers (KeyPurposeIds) for X.509 certificates. In addition, severalextended key usage hadKeyPurposeIds have been added [RFC7299]as public Object Identifier (OID)under the IANArepository.repository "SMI Security for PKIX Extended Key Purpose". While usage ofany extended key usagethe "anyExtendedKeyUsage" KeyPurposeId is bad practice for publicly trusted certificates, thereareis no public and generalextended key usageKeyPurposeId explicitly assigned for DocumentSigning certificates.Signing. The current practice is to use id-kp-emailProtection, id-kp-codeSigning orvendor defined OIDa vendor-defined KeyPurposeId for general document signing purposes. In circumstances where code signing and S/MIME certificates are also widely used for document signing, the technical or policy changes that are made to code signing and S/MIME certificates may cause unexpected behaviors or have an adverse impact such as decreased cryptographic agility on the document signing ecosystem and vice versa. There is no issue if thevendor defined OIDsvendor-defined KeyPurposeIds are used in a PKI (or a trust program) governed by the vendor. However, if theOIDKeyPurposeId is used outside ofthevendor governance, the usage can easily become out of control (e.g. - When the end user encountersvendor defined OIDs,vendor-defined KeyPurposeIds, they might want to ask that vendor about use of the certificate, however, the vendor may not know about the particular use. - If the issuance of the cert is not under the control of theOIDKeyPurposeId owner, there is no way for theOIDKeyPurposeId owner to know what the impact will be if any change is made to theOIDKeyPurposeId in question, and it would restrict vendor's choice of OID management. etc.). Therefore, it is not favorable to use avendor defined EKUvendor-defined KeyPurposeId for signing a document that is not governed by the vendor. This document defines ageneral Document Signingextended key purposeidentifier.identifier for Document Signing. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 3. Extended KeyusagePurpose forDocumentSigningDocument Signing This specification defines the KeyPurposeId id-kp-documentSigning.Inclusion of this KeyPurposeIdAs described ina[RFC5280], If the Extended Key Usage extension is present, then the certificateindicatesMUST only be used for one of the purposes indicated. [RFC5280] also describes that If multiple key purposes are indicated theuse of any Subject namesapplication need not recognize all purposes indicated, as long as the intended purpose is present. Document Signing applications MAY require that the Extended Key Usage extension be present and that a id-kp-documentSigning be indicated in order for the certificateis restrictedtouse by a document signing. Term ofbe acceptable to that Document Signing application. The term "DocumentSign"Signing" in this documentisrefers to digitallysignsigning contents that are consumed byhumans.people. To be more precise, contents are intended to be shown tohumana person with printable or displayable form by means of services or software, rather than processed by machines. 3.1. Including the Extended KeyUsage ValuesPurpose for Document Signing in Certificates [RFC5280] specifies the EKU X.509 certificate extension for useinon the Internet. The extension indicates one or more purposes for which the certified public key is valid. The EKU extension can be used in conjunction with the key usage extension, which indicateshowthepublic key in the certificate is used, in a moreset of basic cryptographicway.operations for which the certified key may be used. The EKU extension syntax is repeated here for convenience: ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId KeyPurposeId ::= OBJECT IDENTIFIER This specification defines the KeyPurposeId id-kp-documentSigning. Inclusion of this KeyPurposeId in a certificate indicates that theuse of any Subject namespublic key encoded in the certificateis restrictedhas been certified touse by a document signing service or a software (along with any usages allowedbe used for cryptographic operations on contents that are consumed byother EKU values).people. id-kp OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) 3 } id-kp-documentSigning OBJECT IDENTIFIER ::= { id-kp XX } 4. Using the Extended Key Purpose for Document SigningEKUin a Certificate [RFC8358] specifies the conventions for digital signatures on Internet-Drafts. This is one of the intended use cases for the general document signingEKUkey purpose described in this document. [RFC8358] uses CMS to digitally sign a wide array of files such as ASCII, PDF, EPUB, HTML etc. Currently, there are no specification regardingEKUkey purposes for certificates signing those files except those which are defined by the software vendor. The signed contents of Internet-Drafts are primarily intended to be consumed by people. To be more precise, contents are intended to be shown to a person in a printable or displayable form by means of services or software, rather than processed by machines.To validate theThe digital signature on the contents is to indicate to the recipient of the contents that the content has not changed since it was signed by the identity indicated as the subject of the certificate. To validate the digital signature which is signed on contents intended to be consumed by people, implementations MAY perform the steps belowas aduring certificatevalidation.validation: The implementation MAY examine the KeyPurposeId(s) included in the Extended Key Usage extension as follows: A Restriction on Extended Key Usagevalue(s):is derived and implemented from (or configured with) the policy to which the implementation conforms. 1. If there are no restrictions set for the relying party and the relying party software, the certificate is acceptable. 2. If there are restrictions set for the replying party and relying party software,proceedthen process the KeyPurposeId(s) asfollowing.described below. EachRestrictionrestriction onthe EKUs can be"ExcludedEKU"KeyPurposeId" or "PermittedEKU" and handled. TheKeyPurposeId" is handled as described below. This procedure is intended to permit or prohibit presence of a certainEKUKeyPurposeId or complete absence ofEKUs.KeyPurposeIds. It is outside the scope of this document, but the relying party can permit orexcludeprohibit combinations ofEKU.KeyPurposeIds. A consideration on prohibitingcombinationcombinations ofEKUsKeyPurposeIds is described in thesecurity considerationSecurity Considerations section of this document. ExcludedEKUsKeyPurposeId procedure: "ExcludedEKU"KeyPurposeId" isan EKUa KeyPurposeId which the relying party or the relying party software prohibits. Examples of "ExcludedEKU"KeyPurposeId" are, presence of the anyExtendedKeyUsage KeyPurposeId or complete absence of the EKU extensiononin a certificate. Ifan EKUa KeyPurposeId of the certificate meets the conditions set by the "ExcludedEKU"KeyPurposeId" restriction, the relying party or the relying party software rejects the certificate. PermittedEKUKeyPurposeId procedure: : "PermittedEKU"KeyPurposeId" isan EKUa KeyPurposeId which the relying party or the relying party software accepts. Examples of "PermittedEKU"KeyPurposeId" are, presence of this general document signingEKUKeyPurposeId and/or protocol specific documentsigning-type EKUs.signing- type KeyPurposeIds. Ifan EKUa KeyPurposeId of the certificate meets the condition set by a "PermittedEKU"KeyPurposeId" restriction, the certificate is acceptable. Otherwise, relying party or the relying party software rejects the certificate. When a singlesoftwareapplication has the capability to process various data formats, the software may choose to make the excluded and permitted decisions separately in accordance with the format it is handling (e.g. text, pdf, etc). 5. Implications for a Certification Authority The procedures and practices employed by a certification authority MUST ensure that the correct values for the EKU extension are inserted in each certificate that is issued. Unless certificates are governed by a vendor specific PKI (or trust program), certificates that indicate usage for document signing MAY include the id-kp- documentSigningEKU extension. This does not encompass the mandatory usageKeyPurposeId. The inclusion of theid-kp-documentSigning EKU in conjunction with the vendor specific EKU. However, thisid-kp- documentSigning KeyPurposeId does notrestrictpreclude theCA from including multiple EKUs related to document signing.inclusion of other KeyPurposeIds. 6. Security Considerations The usage of id-kp-documentSigningEKU intendsKeyPurposeId is toprevent id-kp- emailProtection fromprovide an alternative to id-kp-emailProtection being used for non-email purposesother than emailandid- kp-codeSigningid-kp-codeSigning being used to sign objects other than binarycodes.code. ThisEKUextended key purpose does not introduce new security risks but instead reduces existing security risks by providing means to separate otherEKUsextended key purposes used for communication protocols namely, TLS or S/MIME etc. in order to minimize the risk ofcross protocolcross-protocol attacks. To reduce the risk of specificcross protocolcross-protocol attacks, the relying party or relying party software mayadditionalyadditionally prohibit use of specificcombinationcombinations ofEKUs.KeyPurposeIds. While a specific protocol or signing scheme may choose to come up with their ownEKU,KeyPurposeIds, some may not have significant motive orresourceresources to set up and managethiertheir ownEKU.KeyPurposeIds. This general document signingEKUKeyPurposeId may be used as astop gapstop-gap for those that intend toset updefine their ownEKUKeyPurposeId or those who do not intend to set up anEKUKeyPurposeId but still would like to distinguish document signing from otherusage.usages. Introduction of this id-kp-documentSigningEKU valueKeyPurposeId does not introduce any new security or privacy concerns. 7. IANA Considerations This document requests that IANA make two assignments. One assignment is for the addition of the id-kp-documentSigning object identifier (OID), as defined in Section 3.1,for the EKU fromto the "SMI Security for PKIX Extended Key Purpose" (1.3.6.1.5.5.7.3) registry.AnotherThe other assignment is for theid-mod-docsign- eku, as defined in Appendix A, foraddition of the id-mod-docsign-eku ASN.1 module [X.680]from theobject identifier (OID), as defined in Appendix A, to the "SMI Security for PKIX Module Identifier" (1.3.6.1.5.5.7.0) registry. No further action is necessary by IANA. 8. References 8.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, <https://www.rfc-editor.org/rfc/rfc2119>. [RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, May 2008, <https://www.rfc-editor.org/rfc/rfc5280>. [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, <https://www.rfc-editor.org/rfc/rfc8174>. [X.680] ITU-T, "Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation", ISO/ IEC 8824-1:2015, November 2015. 8.2. Informative References [RFC7299] Housley, R., "Object Identifier Registry for the PKIX Working Group", RFC 7299, DOI 10.17487/RFC7299, July 2014, <https://www.rfc-editor.org/rfc/rfc7299>. [RFC8358] Housley, R., "Update to Digital Signatures on Internet- Draft Documents", RFC 8358, DOI 10.17487/RFC8358, March 2018, <https://www.rfc-editor.org/rfc/rfc8358>. Appendix A. ASN.1 Module The following ASN.1 module provides the complete definition of the Document SigningEKU.KeyPurposeId. DocSignEKU { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-docsign-eku(TBD1) } DEFINITIONS EXPLICIT TAGS ::= BEGIN -- EXPORTS ALL -- -- IMPORTS NOTHING -- -- OID Arc -- id-kp OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) kp(3) } -- Document Signing Extended Key Usage -- id-kp-documentSigning OBJECT IDENTIFIER ::= { id-kp TBD2 } END Acknowledgments We would like to thank Russ Housley for verifying the ASN.1 module. Authors' Addresses Tadahiko Ito SECOM CO., LTD. Email: tadahiko.ito.public@gmail.com Tomofumi Okubo DigiCert, Inc. Email: tomofumi.okubo+ietf@gmail.com Sean Turner sn3rd Email: sean@sn3rd.com