Network Working Group | J. Preuss Mattsson |
Internet-Draft | G. Selander |
Updates: draft-ietf-cose-x509 (if | Ericsson AB |
approved) | S. Raza |
Intended status: Standards Track | J. Höglund |
Expires: September 10, 2020 | RISE AB |
M. Furuhed | |
Nexus Group | |
March 09, 2020 |
CBOR Object Signing and Encryption (COSE): Headers for Carrying CBOR Compressed Certificates
draft-mattsson-cose-cbor-cert-compress-00
Certificate chains often take up the majority of the bytes transmitted in COSE message that carry certificates. Large messages can cause problems, particularly in constrained IoT environments. RFC 7925 defines a certificate profile for constrained IoT. General purpose compression algorithms can in many cases not compress RFC 7925 profiled certificates at all. By using the fact that the certificates are profiled, the CBOR certificate compression algorithms can in many cases compress RFC 7925 profiled certificates with over 50%. This document specifies the CBOR certificate compression algorithm for use with COSE.
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 September 10, 2020.
Copyright (c) 2020 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.
[I-D.ietf-cose-x509] provides attributes that refer to or contain X.509 certificates. X.509 certificates often take up the majority of the bytes transmitted in COSE messages that carry certificates. Large messages negatively affect latency, but can also result in that the security protocol cannot be completed [I-D.ietf-emu-eaptlscert].
Large messages is particularly a problem for constrained IoT environments [RFC7228] [I-D.ietf-lake-reqs]. [RFC7925] defines a X.509 certificate profile for constrained IoT. The certificate profile in [RFC7925] is defined for TLS/DTLS 1.2 but works well also for COSE and other protocols. For such RFC 7925 profiled IoT certificates, general purpose compression algorithms can in many cases only provide negliable or no compression at all. [I-D.raza-ace-cbor-certificates] therefore defines a CBOR [RFC7049] compression algorithm for RFC 7925 profiled certificates. The algorithm works for all RFC 7925 profiled certificates and provide significant reduction in size, in many cases over 50%.
This document specifies the CBOR certificate compression algorithm [I-D.raza-ace-cbor-certificates] for use with COSE.
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.
This document specifies the CBOR certificate compression algorithm specified in Section 3 of [I-D.raza-ace-cbor-certificates] for use with COSE.
The CBOR Certificate compression algorithm takes as input an RFC 7925 profiled X.509 certificate. The output of the CBOR compression algorithm is a CBOR Sequence [I-D.ietf-cbor-sequence], i.e. a sequence of concatenated CBOR encoded CBOR data items [RFC7049]. Compressed certificates can be analysed with any CBOR decoder and be validated against the CDDL specification defined in Section 3 of [I-D.raza-ace-cbor-certificates].
The algorithm works for all RFC 7925 profiled certificates and provide significant reduction in size, in many cases over 50%. An example compression of a RFC 7925 profiled certificate is given below. See Appendix A of [I-D.raza-ace-cbor-certificates] for details.
+------------------+--------------+------------+--------------------+ | | RFC 7925 | zlib | CBOR Certificate | +------------------+---------------------------+--------------------+ | Certificate Size | 314 | 295 | 136 | +------------------+--------------+------------+--------------------+
The header attributes defined in this document are:
+-----------+-------+----------------+---------------------+ | Name | Label | Value Type | Description | +===========+=======+================+=====================+ | CBORchain | TBD1 | COSE_CBOR_Cert | An ordered chain of | | | | | CBOR certificates | +-----------+-------+----------------+---------------------+
Below is an equivalent CDDL [RFC8610] description of the text above.
COSE_CBOR_Cert = bstr / [ 2*certs: bstr ]
The security considerations in [I-D.ietf-cose-x509] and [I-D.raza-ace-cbor-certificates] apply.
This document registers the COSE Header items in Table 1 in the “COSE Header Parameters” registry under the “CBOR Object Signing and Encryption (COSE)” heading. For each item, the ‘Reference’ field points to this document.
[I-D.ietf-emu-eaptlscert] | Sethi, M., Mattsson, J. and S. Turner, "Handling Large Certificates and Long Certificate Chains in TLS-based EAP Methods", Internet-Draft draft-ietf-emu-eaptlscert-01, March 2020. |
[I-D.ietf-lake-reqs] | Vucinic, M., Selander, G., Mattsson, J. and D. Garcia-Carillo, "Requirements for a Lightweight AKE for OSCORE", Internet-Draft draft-ietf-lake-reqs-01, February 2020. |
[RFC7228] | Bormann, C., Ersue, M. and A. Keranen, "Terminology for Constrained-Node Networks", RFC 7228, DOI 10.17487/RFC7228, May 2014. |
[RFC8610] | Birkholz, H., Vigano, C. and C. Bormann, "Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures", RFC 8610, DOI 10.17487/RFC8610, June 2019. |
The authors want to thank TBD for their valuable comments and feedback.