Internet-Draft | draft-hsharma-lamps-ocsp-nonce-update-01 | November 2023 |
Sharma | Expires 26 May 2024 | [Page] |
This document updates the Nonce extension section of RFC-8954. Nonce extension is an optional extension for Online Certificate Status Protocol (OCSP) request and response messages. OCSP is used for checking the status of a certificate, and the Nonce extension is used to cryptographically bind an OCSP response message to a particular OCSP request message. This document updates OCSP responder behavior for the OCSP requests that have Nonce length longer than the maximum length limit defined in [RFC8954], So that it won't impact the existing OCSP clients.¶
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 26 May 2024.¶
Copyright (c) 2023 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.¶
This document updates the OCSP server behavior for the OCSP requests, which have Nonce length that exceeds the maximum length limit defined in [RFC8954]. This extension was previously defined in Section 4.4.1 of [RFC6960] and updated in [RFC8954]. [RFC6960] defines OCSP extensions as an optional extension that provides the freedom to OCSP responders to ignore the Nonce extension regardless of its existence or value in OCSP request, whereas [RFC8954] language directs the OCSP responders to MUST take action based on the Nonce value in OCSP requests. For example, [RFC8954] directs OCSP responder to MUST reject all the OCSP requests that have NONCE longer than 32 OCTET string and MUST respond with the malformedRequest OCSPResponseStatus.¶
The OCSP responder SHOULD be able to ignore the Nonce values (valid or invalid) as it is an optional extension. Ignoring the longer Nonce value helps the OCSP responder achieve better backward compatibility, as it won't impact the existing OCSP clients that have already been using longer Nonce values. This document updates the [RFC8954] by replacing the section 2.1 of [RFC8954]. This document updates the OCSP responder's behavior in case of Nonce length presented in OCSP request exceeds the maximum Nonce length of 32 OCTETS. This update also provides an example of Nonce value in OCTET string.¶
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.¶
The message formats for OCSP requests and responses are defined in [RFC6960] and Nonce extension was updated in [RFC8954]. [RFC6960] also defines the standard extensions for OCSP messages based on the extension model employed in X.509 version 3 certificates (see [RFC5280]). [RFC8954] replaces this section to enforce the minimum and maximum length for the Nonce value. This document adds flexibility to OCSP servers to either reject or ignore the OCSP request that has Nonce longer than 32 OCTETS. This document doesn't change the length requirement for Nonce value and does not change the specifications of any of the other standard extensions defined in [RFC6960] or [RFC8954].¶
This section replaces the entirety of Section 2.1 of [RFC8954], which describes the OCSP Nonce extension.¶
The Nonce cryptographically binds a request and a response to prevent replay attacks.The Nonce is included as one of the requestExtensions in requests; in responses, it would be included as one of the responseExtensions.In both the request and the response, the Nonce will be identified by the object identifier id-pkix-ocsp-Nonce, while the extnValue is the value of the Nonce. If the Nonce extension is present, then the length of the Nonce MUST be at least 1 octet and can be up to 32 octets.¶
A server MUST either reject any OCSP request that has a Nonce in the Nonce extension with a length of either 0 octets or more than 32 octets with the malformedRequest OCSPResponseStatus, as described in Section 4.2.1 of [RFC6960], or the server MAY choose to ignore the Nonce extension with a length of more than 32 octets and in that case MUST leave out the Nonce extension in the response.¶
The value of the Nonce MUST be generated using a cryptographically strong pseudorandom number generator (see [RFC4086]). The minimum Nonce length of 1 octet is defined to provide backward compatibility with older clients that follow [RFC6960].¶
id-pkix-ocsp OBJECT IDENTIFIER ::= { id-ad-ocsp } id-pkix-ocsp-Nonce OBJECT IDENTIFIER ::= { id-pkix-ocsp 2 } Nonce ::= OCTET STRING(SIZE(1..32)) Raw Nonce Example: 1FA16041C0E2D739898EC69972A4B967DFD3488148E6DA61CF3AF2DC32383383 OCSP Nonce Octet String: 04201FA16041C0E2D739898EC69972A4B967DFD3488148E6DA61CF3AF2DC32383383¶
This memo includes no request to IANA.¶
This document should not affect the security of the Internet.¶