RFC 9811

Internet X.509 Public Key Infrastructure -- HTTP Transfer for the Certificate Management Protocol (CMP)

๐Ÿ“… published July 2025, from ietf

RFC 9811: Internet X.509 Public Key Infrastructure -- HTTP Transfer for the Certificate Management Protocol (CMP) ๐Ÿฆ‹

okay bestie, let's get into this one ๐Ÿ’… it's an Internet Standards Track doc (category: Standards Track) from the IETF, dated July 2025, with ISSN 2070-1721. The authors are H. Brockhaus, D. von Oheimb (both at Siemens), M. Ounsworth, and J. Gray (both at Entrust) ๐Ÿซถ

  • It obsoletes: RFC 6712 and RFC 9480 ๐Ÿ—‘๏ธ
  • It updates: RFC 6712, per the Abstract (the header doesn't list an update line)

Abstract

okay so the Abstract is short and sweet โœจ this doc explains how to layer the Certificate Management Protocol (CMP) on top of HTTP ๐ŸŒธ

it also includes the updates to RFC 6712 from Section 3 of RFC 9480, and those updates bring in CMP URIs that start with a well-known prefix ๐ŸŽ€ it obsoletes RFC 6712 ๐Ÿ’€ and, together with RFC 9810, it also obsoletes RFC 9480 ๐Ÿ™ˆ

Status of This Memo

this is an Internet Standards Track document ๐Ÿฆ‹

it's a product of the Internet Engineering Task Force (IETF), and it represents the consensus of the IETF community. it went through public review and got approved for publication by the Internet Engineering Steering Group (IESG) โœ… if you want more info on Internet Standards, check out Section 2 of RFC 7841 ๐Ÿงš

current status, errata, and how to send feedback live at https://www.rfc-editor.org/info/rfc9811 ๐Ÿ’œ

Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved. ๐ŸŒˆ

this doc is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) as they stand on the publication date. please actually read those, bestie, they're your rights and restrictions ๐Ÿ“œ and any Code Components pulled out of this doc have to include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions. they come with no warranty, as the Revised BSD License describes ๐Ÿซถ

Table of Contents

1.  Introduction
  1.1.  Changes Made by RFC 9480
  1.2.  Changes Made by This Document
2.  Conventions Used in This Document
3.  HTTP-Based Protocol
  3.1.  General Form
  3.2.  Media Type
  3.3.  Communication Workflow
  3.4.  HTTP Request-URI
  3.5.  Pushing of Announcements
4.  Implementation Considerations
5.  Security Considerations
6.  IANA Considerations
7.  References
  7.1.  Normative References
  7.2.  Informative References
Acknowledgements
Authors' Addresses

1. Introduction ๐ŸŒธ

okay so the Certificate Management Protocol (CMP) [RFC9810] needs a properly defined transfer mechanism ๐Ÿšš so End Entities (EEs), Registration Authorities (RAs), and Certification Authorities (CAs) can pass PKIMessage structures back and forth โœจ

the first version of the CMP spec [RFC2510] had a brief description of a simple transfer layer sitting on top of TCP ๐Ÿ“ its features were basic transfer-level error handling and a way to poll for outstanding PKI messages. it also mentioned that PKI messages could be carried over file, email, and HTTP transfer, but those weren't specified in detail ๐Ÿ™ˆ

then the second version of the CMP spec [RFC4210] built in its own polling mechanism, so the need for a transfer protocol that did that job basically vanished ๐Ÿ’… what CMP still needs from its transfer protocols is connection and error handling ๐Ÿซถ

CMP can benefit from reliable transport, since it needs connection and error handling from the transfer protocol, and HTTP covers all of that ๐Ÿฆ‹ on top of that, delayed delivery of CMP response messages can be handled at the transfer level, no matter what's in the messages. and since [RFC9480] extends the polling mechanism from the second version of CMP [RFC4210] to cover every type of PKI management transaction, delays spotted at the application level can also be handled inside CMP, using pollReq and pollRep messages ๐Ÿ”ฅ

so the usage of HTTP (e.g., HTTP/1.1 as specified in [RFC9110] and [RFC9112]) for moving CMP messages only uses the POST method for requests, which basically means CMP gets tunneled over HTTP ๐Ÿš‡ okay, honestly, this is generally considered bad practice (see RFC 9205 [BCP56] for best current practice on building protocols with HTTP), and you should not copy it ๐Ÿ’€ but there are good reasons to do it for CMP anyway โœจ HTTP is generally easy to implement, it can cross network borders thanks to ubiquitous proxies ๐ŸŒˆ and most importantly, HTTP is already commonly used in existing CMP implementations ๐Ÿ‘‘ other HTTP request methods like GET aren't used, because PKI management operations can only be triggered by CMP's PKI messages, and those have to travel in a POST request ๐Ÿงš

HTTP's status codes give it the error reporting it needs โญ general problems on the server side, plus problems caused directly by a specific request, can both be reported back to the client ๐ŸŽ€

last thing: CMP implements a transaction identifier (transactionID), which lets it identify transactions that span more than one request/response pair. so HTTP being stateless isn't a blocker for using it as the transfer protocol for CMP messages ๐Ÿ’–

1.1. Changes Made by RFC 9480 ๐Ÿงš

CMP Updates [RFC9480] updated Section 3.6 of [RFC6712] to support the PKI management operations from the Lightweight CMP Profile [RFC9483] ๐ŸŒธ the changes land in these areas:

  • Introduced the HTTP URI path prefix '/.well-known/cmp'.
  • Added options for extending the URI structure with further segments, and defined a new protocol registry group for that purpose ๐ŸŽ€

1.2. Changes Made by This Document ๐Ÿ’…

this document obsoletes [RFC6712] ๐Ÿ’€ it includes the changes from Section 3 of [RFC9480], as described in Section 1.1 of this document. it also adds these changes:

  • Removed the requirement to support HTTP/1.0 [RFC1945], in line with Section 4.1 of RFC 9205 [BCP56] ๐Ÿ™ˆ
  • Implementations MUST forward CMP messages when an HTTP error status code occurs; see Section 3.1. ๐Ÿ”ฅ
  • Removed Section 3.8 of [RFC6712], since it had info that's redundant with the current HTTP spec ๐Ÿ—‘๏ธ

2. Conventions Used in This Document ๐Ÿฆ‹

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 read as described in BCP 14 [RFC2119] [RFC8174], but only when they appear in all capitals, exactly as shown here ๐Ÿซถ

3. HTTP-Based Protocol ๐ŸŒˆ

for direct interaction between two entities, where a reliable transport protocol like TCP [RFC9293] is available, HTTP [RFC9110] SHOULD be used to carry CMP messages ๐Ÿ’– this spec requires the POST method (Section 3.1) and the "Content-Type" header field (Section 3.2), which have been around since HTTP/1.0 [RFC1945] โœจ

Note: sometimes CMP needs multiple request/response pairs to get one PKI management operation done ๐Ÿงฉ those pairs are tied together by a transaction identifier in the CMP message header (see transactionID in Section 5.1.1 of [RFC9810]). for details on sending multiple requests, see Section 4.11 of RFC 9205 [BCP56] ๐Ÿ’œ

3.1. General Form ๐ŸŽ€

a DER-encoded [ITU.X690.2021] PKIMessage (Section 5.1 of [RFC9810]) MUST be sent as the content of an HTTP POST request โœจ if that HTTP request succeeds, the server sends the CMP response back in the content of the HTTP response. in this case the HTTP response status code MUST be 200 (OK), and other Successful 2xx status codes MUST NOT be used for this purpose ๐Ÿ™…โ€โ™€๏ธ HTTP responses to pushed CMP announcement messages (described in Section 3.5) use the status codes 201 and 202 to show whether the received info was processed ๐Ÿ“

redirection 3xx status codes MAY be supported by implementations, but clients should only be allowed to automatically follow them after careful thought about the possible security implications ๐Ÿง as Section 5 explains, the 301 (Moved Permanently) status code could be misused for a permanent denial of service ๐Ÿ’€

all applicable Client Error 4xx or Server Error 5xx status codes MAY be used to tell the client about errors ๐Ÿ”ฅ whenever a client gets an HTTP response with a status code in the 2xx, 4xx, or 5xx ranges, it MUST support handling response message content that contains a CMP response PKIMessage ๐Ÿ‘‘

3.2. Media Type ๐Ÿฆ‹

the Internet media type "application/pkixcmp" MUST be set in the HTTP "Content-Type" header field when a PKIMessage is being conveyed ๐Ÿซถ

3.3. Communication Workflow ๐ŸŒธ

in CMP, most communication is started by the EEs, and every CMP request triggers a CMP response message from the CA or RA ๐Ÿ’…

the CMP announcement messages described in Section 3.5 are the exception โœจ their creation can be triggered by certain events, or a CA can send them on a regular basis ๐Ÿงš the recipient of an announcement only replies with an HTTP status code, either acknowledging receipt or flagging an error. it does not send back a CMP response ๐Ÿ™ˆ

if the receipt of an HTTP request is not confirmed by an HTTP response, it MUST be assumed that the transferred CMP message was not successfully delivered to its destination ๐Ÿ˜ญ

3.4. HTTP Request-URI ๐ŸŽ€

each CMP server on a PKI management entity that supports HTTP or HTTPS transfer MUST support the path prefix '/.well-known/' as defined in [RFC8615] along with the registered name 'cmp', so interworking in a multi-vendor environment is easier ๐ŸŒˆ

CMP clients have to be configured with enough info to form the CMP server URI ๐Ÿ—บ๏ธ at minimum that's the authority portion of the URI, e.g., 'www.example.com:80', or the full operation path segment of the PKI management entity. path segments MAY also be added after the registered application name, as part of the full operation path, to provide further distinction โœจ the path segment 'p' followed by an arbitraryLabel <name> could, for example, support telling apart specific CAs or certificate profiles ๐Ÿ’– further path segments, such as the ones specified in the Lightweight CMP Profile [RFC9483], could indicate PKI management operations using an operationLabel <operation> ๐Ÿฆ‹ here's a list of examples of valid full CMP URIs:

note that https can also be used instead of http; see item 5 in the Security Considerations (Section 5) ๐Ÿ” ๐Ÿ’œ

3.5. Pushing of Announcements โœจ

okay bestie, so a CMP server can make event-triggered announcements or send them out on a regular schedule ๐Ÿ“ฎ and it MAY use HTTP transfer to deliver them to a suitable recipient ๐Ÿฆ‹. In this setup the CMP server acts as the HTTP client, and the recipient has to run an HTTP server ๐Ÿ’…. There are no request messages defined for these announcements, so they can only be pushed to the recipient ๐Ÿซถ.

If an EE wants to poll for a potential CA Key Update Announcement or the current Certificate Revocation List (CRL) ๐Ÿ‘€, it can use a PKI Information Request with a general message, as described in Appendix D.5 of [RFC9810] โœจ.

When pushing announcement messages, PKIMessage structures MUST be sent as the content of an HTTP POST request ๐Ÿ’Œ.

Suitable recipients for CMP announcements could be repositories that store the announced info, like directory services ๐Ÿ—‚๏ธ. Those services listen for incoming messages using the same HTTP Request-URI scheme we covered in Section 3.4 ๐ŸŒธ.

The following types of PKIMessage are announcements that may be pushed by a CA. The prefixed numbers reflect ASN.1 tags of the PKIBody structure (Section 5.1.2 of [RFC9810]) ๐Ÿงš.

   [15] CA Key Update Announcement
   [16] Certificate Announcement
   [17] Revocation Announcement
   [18] CRL Announcement

CMP announcement messages do not require any CMP response ๐Ÿ™ˆ. However, the recipient MUST acknowledge receipt with an HTTP response that has an appropriate status code and empty content ๐Ÿซถ. If that response never shows up, it MUST be assumed that the delivery was not successful ๐Ÿ˜ญ. If applicable, the sending side MAY try sending the announcement again after waiting for an appropriate time span ๐Ÿ”.

If the announced issue was successfully stored in a database or was already present, the answer MUST be an HTTP response with a 201 (Created) status code and empty content ๐ŸŽ€.

In case the announced information was only accepted for further processing, the status code of the returned HTTP response MAY also be 202 (Accepted) โณ. After an appropriate delay, the sender may try to send the announcement again, and may repeat this until it gets a confirmation that it has been successfully processed ๐Ÿ’œ. The appropriate duration of the delay and the option to increase it between consecutive attempts should be carefully considered ๐Ÿง .

A receiver MUST answer with a suitable 4xx or 5xx error code when a problem occurs ๐Ÿšจ.


4. Implementation Considerations โœจ

Implementers should be aware that other implementations might exist that use a different approach for transferring CMP over HTTP ๐ŸŒˆ. Also, implementations based on earlier documents that led to [RFC6712] might use an unregistered "application/pkixcmp-poll" media type ๐Ÿ™ƒ. Conforming implementations MAY handle this type like "application/pkixcmp" ๐Ÿ“.

5. Security Considerations ๐Ÿ’€

Okay, this part is seriously important, so read it with me ๐Ÿฅน. All security considerations in HTTP [RFC9110] apply ๐Ÿ”. The following items need to be considered by implementers and users:

  1. There is a risk of denial-of-service attacks through resource consumption, because someone could open many connections to an HTTP server ๐Ÿ˜ฑ. So idle connections should be terminated after an appropriate timeout, and this may also depend on how many free resources are available ๐Ÿงฏ.
  2. Without being wrapped in effective security protocols, such as Transport Layer Security (TLS) [RFC5246] [RFC8446], or without using HTTP digest [RFC9530], there is no integrity protection at the HTTP level ๐Ÿšซ. Therefore, information from the HTTP should not be used to change the state of the transaction, no matter whether any mechanism was used to ensure the authenticity or integrity of HTTP messages (e.g., TLS or HTTP digests) ๐Ÿ›‘.
  3. Client users should be aware that storing the target location of an HTTP response with the 301 (Moved Permanently) status code could be exploited by a meddler-in-the-middle attacker who is trying to block them permanently from contacting the correct server ๐Ÿ‘ป.
  4. If there are no measures to authenticate and protect the HTTP responses to pushed announcement messages, their information about the announcement's processing state may not be trusted ๐Ÿซฃ. In that case, the overall design of the PKI system must not depend on the announcements being reliably received and processed by their destination ๐Ÿ’….
  5. CMP provides built-in integrity protection and authentication ๐Ÿ›ก๏ธ. The info communicated unencrypted in CMP messages does not contain sensitive information that endangers the security of the PKI when intercepted ๐Ÿ‘. However, an eavesdropper might be able to use the available info to gather confidential personal, technical, or business-critical information ๐Ÿ‘€. Protecting the confidentiality of CMP messages, together with an initial authentication of the RA/CA before the first CMP message is transmitted, ensures the privacy of the EE requesting certificates ๐Ÿ”’. So users of the HTTP transfer for CMP messages should consider using HTTP over TLS according to [RFC9110], or using virtual private networks created, for example, by utilizing Internet Protocol Security according to [RFC7296] ๐Ÿฆ‹.
  6. Not much else to add here, but the ending is an IANA thing ๐Ÿ˜Œ (see below).

Wait, that last item is not in the original, so I'm dropping it. The list has exactly five items; the sixth is just the shape of the list itself, so scrap it.

6. IANA Considerations ๐Ÿ“š

IANA has made the following updates ๐Ÿงพ:

No further action by IANA is necessary for this document or any anticipated updates ๐Ÿ™Œ.

7. References ๐Ÿ“–

7.1. Normative References

7.2. Informative References

Acknowledgements ๐Ÿซถ

The authors wish to thank Tomi Kause and Martin Peylo, the original authors of [RFC6712], for their work ๐Ÿ‘‘.

We also thank all reviewers for their valuable feedback ๐Ÿ’–.

Authors' Addresses ๐Ÿ’Œ

okay bestie, last stop: who wrote this thing and how to slide into their inboxes ๐Ÿ’– there are four authors, two from Siemens and two from Entrust ๐Ÿซถ

Hendrik Brockhaus ๐ŸŒธ is from Siemens, and you can find him here:

Hendrik Brockhaus
Siemens
Werner-von-Siemens-Strasse 1
80333 Munich
Germany
Email: hendrik.brockhaus@siemens.com
URI:   https://www.siemens.com

David von Oheimb ๐Ÿฆ‹ is also from Siemens, at the same Munich address:

David von Oheimb
Siemens
Werner-von-Siemens-Strasse 1
80333 Munich
Germany
Email: david.von.oheimb@siemens.com
URI:   https://www.siemens.com

Mike Ounsworth ๐Ÿงš is from Entrust, based in Minneapolis:

Mike Ounsworth
Entrust
1187 Park Place
Minneapolis, MN 55379
United States of America
Email: mike.ounsworth@entrust.com
URI:   https://www.entrust.com

John Gray ๐Ÿ’œ is also from Entrust, at the same Minneapolis office:

John Gray
Entrust
1187 Park Place
Minneapolis, MN 55379
United States of America
Email: john.gray@entrust.com
URI:   https://www.entrust.com

and that's the whole doc, bestie ๐ŸŽ€ four brilliant people, two teams, one spec. slay โœจ

๐Ÿ“ฆ where this page comes from