CINXE.COM

draft-cavage-http-signatures-12

<!DOCTYPE html> <html data-bs-theme="auto" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title> draft-cavage-http-signatures-12 </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://static.ietf.org/fonts/inter/import.css" rel="stylesheet"> <link href="https://static.ietf.org/fonts/noto-sans-mono/import.css" rel="stylesheet"> <link rel="stylesheet" href="https://static.ietf.org/dt/12.28.2/ietf/css/document_html_referenced.css"> <script type="module" crossorigin="" src="https://static.ietf.org/dt/12.28.2/assets/embedded-e653257c.js"></script> <link href="https://static.ietf.org/dt/12.28.2/assets/create-pinia-singleton-091c62b7.js" type="text/javascript" crossorigin="anonymous" rel="modulepreload" as="script" /> <link href="https://static.ietf.org/dt/12.28.2/assets/Scrollbar-7de50899.js" type="text/javascript" crossorigin="anonymous" rel="modulepreload" as="script" /> <script src="https://static.ietf.org/dt/12.28.2/ietf/js/document_html.js"></script> <script src="https://static.ietf.org/dt/12.28.2/ietf/js/theme.js"></script> <link rel="alternate" type="application/atom+xml" title="Document changes" href="/feed/document-changes/draft-cavage-http-signatures/"> <meta name="description" content="Signing HTTP Messages (Internet-Draft, 2019)" > <link rel="apple-touch-icon" sizes="180x180" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-180.png"> <link rel="icon" sizes="32x32" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-32.png"> <link rel="icon" sizes="16x16" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-16.png"> <link rel="manifest" href="/site.webmanifest"> <link rel="mask-icon" href="https://static.ietf.org/dt/12.28.2/ietf/images/ietf-logo-nor-mask.svg" color="#ffffff"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="theme-color" content="#ffffff"> <meta property="og:title" content="Signing HTTP Messages"> <meta property="og:url" content="https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures"> <link rel="canonical" href="https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures"> <meta property="og:site_name" content="IETF Datatracker"> <meta property="og:description" content="When communicating over the Internet using the HTTP protocol, it can be desirable for a server or client to authenticate the sender of a particular message. It can also be desirable to ensure that the message was not tampered with during transit. This document describes a way for servers and clients to simultaneously add authentication and message integrity to HTTP messages by using a digital signature."> <meta property="og:type" content="article"> <meta property="article:section" content="Individual Internet-Draft"> <meta property="article:author" content="Mark Cavage"> <meta property="article:author" content="Manu Sporny"> <style> .diff-form .select2-selection__rendered { direction: rtl; text-align: left; } </style> </head> <body> <noscript><iframe class="status" title="Site status" src="/status/latest"></iframe></noscript> <div class="vue-embed" data-component="Status"></div> <div class="btn-toolbar sidebar-toolbar position-fixed top-0 end-0 m-2 m-lg-3 d-print-none"> <div class="dropdown"> <button class="btn btn-outline-secondary btn-sm me-1 dropdown-toggle d-flex align-items-center" id="bd-theme" type="button" aria-expanded="false" data-bs-toggle="dropdown" aria-label="Toggle theme"> <i class="theme-icon-active bi bi-circle-half"></i> </button> <ul class="dropdown-menu" aria-labelledby="bd-theme"> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> <i class="me-2 opacity-50 theme-icon bi bi-sun-fill"></i> Light<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> <i class="me-2 opacity-50 theme-icon bi bi-moon-stars-fill"></i> Dark<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> <i class="me-2 opacity-50 theme-icon bi bi-circle-half"></i> Auto<i class="bi bi-check2 ms-auto d-none"></i> </button> </li> </ul> </div> <button class="btn btn-outline-secondary btn-sm sidebar-toggle" type="button" data-bs-toggle="collapse" data-bs-target="#sidebar" aria-expanded="true" aria-controls="sidebar" aria-label="Toggle metadata sidebar" title="Toggle metadata sidebar"> <i class="bi bi-arrow-bar-left sidebar-shown"></i> <i class="bi bi-arrow-bar-right sidebar-collapsed"></i> </button> </div> <nav class="navbar bg-light-subtle px-1 fixed-top d-print-none d-md-none"> <a class="nav-link ps-1" href="/doc/draft-cavage-http-signatures/"> draft-cavage-http-signatures-12 <br class="d-sm-none"> <span class="ms-sm-3 badge rounded-pill badge-draft"> None </span> </a> <button class="navbar-toggler p-1" type="button" data-bs-toggle="collapse" data-bs-target="#docinfo-collapse" aria-controls="docinfo-collapse" aria-expanded="false" aria-label="Show document information"> <span class="navbar-toggler-icon small"></span> </button> <div class="navbar-nav navbar-nav-scroll overscroll-none collapse pt-1" id="docinfo-collapse"> <div class="bg-light-subtle p-0"> <table class="table table-sm table-borderless small"> <tbody class="meta align-top"> <tr> <th scope="row"></th> <th scope="row">Title</th> <td class="edit"></td> <td>Signing HTTP Messages</td> </tr> </tbody> <tbody class="meta align-top "> <tr> <th scope="row">Document</th> <th scope="row">Document type</th> <td class="edit"></td> <td> <span class="text-danger">Replaced Internet-Draft</span> (individual) <div class="badge rounded-pill text-bg-warning"> Expired &amp; archived </div> <div class="alert alert-warning small p-2 mt-2" role="alert"> This document is an Internet-Draft (I-D). Anyone may submit an I-D to the IETF. This I-D is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the <a href="/doc/rfc2026/">IETF standards process</a>. </div> </td> </tr> <tr> <td></td> <th scope="row">Select version</th> <td class="edit"></td> <td> <ul class="revision-list pagination pagination-sm text-center flex-wrap my-0"> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-00" > 00 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-01" rel="nofollow"> 01 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-02" rel="nofollow"> 02 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-03" rel="nofollow"> 03 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-04" rel="nofollow"> 04 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-05" rel="nofollow"> 05 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-06" rel="nofollow"> 06 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-07" rel="nofollow"> 07 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-08" rel="nofollow"> 08 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-09" rel="nofollow"> 09 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-10" rel="nofollow"> 10 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-11" rel="nofollow"> 11 </a> </li> <li class="page-item active"> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-12" > 12 </a> </li> </ul> </td> </tr> <tr> <td></td> <th scope="row">Compare versions</th> <td class="edit"></td> <td> <form class="form-horizontal diff-form" action="https://author-tools.ietf.org/iddiff" method="get" target="_blank"> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="From revision" name="url1"> <option value="draft-cavage-http-signatures-12"> draft-cavage-http-signatures-12 </option> <option value="draft-cavage-http-signatures-11" selected> draft-cavage-http-signatures-11 </option> <option value="draft-cavage-http-signatures-10"> draft-cavage-http-signatures-10 </option> <option value="draft-cavage-http-signatures-09"> draft-cavage-http-signatures-09 </option> <option value="draft-cavage-http-signatures-08"> draft-cavage-http-signatures-08 </option> <option value="draft-cavage-http-signatures-07"> draft-cavage-http-signatures-07 </option> <option value="draft-cavage-http-signatures-06"> draft-cavage-http-signatures-06 </option> <option value="draft-cavage-http-signatures-05"> draft-cavage-http-signatures-05 </option> <option value="draft-cavage-http-signatures-04"> draft-cavage-http-signatures-04 </option> <option value="draft-cavage-http-signatures-03"> draft-cavage-http-signatures-03 </option> <option value="draft-cavage-http-signatures-02"> draft-cavage-http-signatures-02 </option> <option value="draft-cavage-http-signatures-01"> draft-cavage-http-signatures-01 </option> <option value="draft-cavage-http-signatures-00"> draft-cavage-http-signatures-00 </option> </select> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="To revision" name="url2"> <option value="draft-cavage-http-signatures-12" selected> draft-cavage-http-signatures-12 </option> <option value="draft-cavage-http-signatures-11"> draft-cavage-http-signatures-11 </option> <option value="draft-cavage-http-signatures-10"> draft-cavage-http-signatures-10 </option> <option value="draft-cavage-http-signatures-09"> draft-cavage-http-signatures-09 </option> <option value="draft-cavage-http-signatures-08"> draft-cavage-http-signatures-08 </option> <option value="draft-cavage-http-signatures-07"> draft-cavage-http-signatures-07 </option> <option value="draft-cavage-http-signatures-06"> draft-cavage-http-signatures-06 </option> <option value="draft-cavage-http-signatures-05"> draft-cavage-http-signatures-05 </option> <option value="draft-cavage-http-signatures-04"> draft-cavage-http-signatures-04 </option> <option value="draft-cavage-http-signatures-03"> draft-cavage-http-signatures-03 </option> <option value="draft-cavage-http-signatures-02"> draft-cavage-http-signatures-02 </option> <option value="draft-cavage-http-signatures-01"> draft-cavage-http-signatures-01 </option> <option value="draft-cavage-http-signatures-00"> draft-cavage-http-signatures-00 </option> </select> <button type="submit" class="btn btn-primary btn-sm" value="--html" name="difftype"> Side-by-side </button> <button type="submit" class="btn btn-primary btn-sm" value="--hwdiff" name="difftype"> Inline </button> </form> </td> </tr> <tr> <td></td> <th scope="row">Authors</th> <td class="edit"> </td> <td> <span ><a title="Datatracker profile of Mark Cavage" href="/person/mark.cavage@joyent.com" >Mark Cavage</a> <a href="mailto:mark.cavage%40joyent.com" aria-label="Compose email to mark.cavage@joyent.com" title="Compose email to mark.cavage@joyent.com"> <i class="bi bi-envelope"></i></a></span>, <span ><a title="Datatracker profile of Manu Sporny" href="/person/msporny@digitalbazaar.com" >Manu Sporny</a> <a href="mailto:msporny%40digitalbazaar.com" aria-label="Compose email to msporny@digitalbazaar.com" title="Compose email to msporny@digitalbazaar.com"> <i class="bi bi-envelope"></i></a></span> <br> <a class="btn btn-primary btn-sm mt-1" href="mailto:draft-cavage-http-signatures@ietf.org?subject=draft-cavage-http-signatures" title="Send email to the document authors">Email authors</a> </td> </tr> <tr> <td></td> <th scope="row"> Replaced by </th> <td class="edit"> </td> <td> <a href="/doc/html/draft-ietf-httpbis-message-signatures" title="HTTP Message Signatures">draft-ietf-httpbis-message-signatures</a> </td> </tr> <tr> <td></td> <th scope="row"> RFC stream </th> <td class="edit"> </td> <td class="text-body-secondary"> (None) </td> </tr> <tr> <td></td> <th scope="row"> Intended RFC status </th> <td class="edit"> </td> <td> <span class="text-body-secondary"> (None) </span> </td> </tr> <tr> <td></td> <th scope="row"> Other formats </th> <td class="edit"> </td> <td> <div class="buttonlist"> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.ietf.org/archive/id/draft-cavage-http-signatures-12.txt"> <i class="bi bi-file-text"></i> txt </a> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.ietf.org/archive/id/draft-cavage-http-signatures-12.xml"> <i class="bi bi-file-code"></i> xml </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/draft-cavage-http-signatures/12/bibtex/"> <i class="bi bi-file-ruled"></i> bibtex </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/bibxml3/draft-cavage-http-signatures-12.xml"> <i class="bi bi-file-code"></i> bibxml </a> </div> </td> </tr> </tbody> <tr> <th scope="row"></th> <th scope="row"></th> <td class="edit"></td> <td> <a class="btn btn-sm btn-warning mb-3" target="_blank" href="https://github.com/ietf-tools/datatracker/issues/new/choose"> Report a bug <i class="bi bi-bug"></i> </a> </td> </tr> </table> </div> </div> </nav> <div class="row g-0"> <div class="col-md-9 d-flex justify-content-center lh-sm" data-bs-spy="scroll" data-bs-target="#toc-nav" data-bs-smooth-scroll="true" tabindex="0" id="content"> <div class="rfcmarkup"> <br class="noprint"> <!-- [html-validate-disable-block attr-quotes, void-style, element-permitted-content, heading-level -- FIXME: rfcmarkup/rfc2html generates HTML with issues] --> <div class="rfcmarkup"><pre>Network Working Group M. Cavage Internet-Draft Oracle Intended status: Standards Track M. Sporny Expires: April 22, 2020 Digital Bazaar October 20, 2019 <span class="h1">Signing HTTP Messages</span> <span class="h1">draft-cavage-http-signatures-12</span> Abstract When communicating over the Internet using the HTTP protocol, it can be desirable for a server or client to authenticate the sender of a particular message. It can also be desirable to ensure that the message was not tampered with during transit. This document describes a way for servers and clients to simultaneously add authentication and message integrity to HTTP messages by using a digital signature. Feedback This specification is a joint work product of the W3C Digital Verification Community Group [<a href="#ref-1">1</a>] and the W3C Credentials Community Group [<a href="#ref-2">2</a>]. Feedback related to this specification should logged in the issue tracker [<a href="#ref-3">3</a>] or be sent to public-credentials@w3.org [<a href="#ref-4">4</a>]. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of <a href="/doc/html/bcp78">BCP 78</a> and <a href="/doc/html/bcp79">BCP 79</a>. 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 <a href="https://datatracker.ietf.org/drafts/current/">https://datatracker.ietf.org/drafts/current/</a>. 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 &quot;work in progress.&quot; This Internet-Draft will expire on April 22, 2020. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 1]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Copyright Notice Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to <a href="/doc/html/bcp78">BCP 78</a> and the IETF Trust&#x27;s Legal Provisions Relating to IETF Documents (<a href="https://trustee.ietf.org/license-info">https://trustee.ietf.org/license-info</a>) 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. Table of Contents <a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a> <a href="#section-1.1">1.1</a>. Using Signatures in HTTP Requests . . . . . . . . . . . . <a href="#page-4">4</a> <a href="#section-1.2">1.2</a>. Using Signatures in HTTP Responses . . . . . . . . . . . <a href="#page-4">4</a> <a href="#section-2">2</a>. The Components of a Signature . . . . . . . . . . . . . . . . <a href="#page-4">4</a> <a href="#section-2.1">2.1</a>. Signature Parameters . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a> <a href="#section-2.1.1">2.1.1</a>. keyId . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a> <a href="#section-2.1.2">2.1.2</a>. signature . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a> <a href="#section-2.1.3">2.1.3</a>. algorithm . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a> <a href="#section-2.1.4">2.1.4</a>. created . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a> <a href="#section-2.1.5">2.1.5</a>. expires . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a> <a href="#section-2.1.6">2.1.6</a>. headers . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a> <a href="#section-2.2">2.2</a>. Ambiguous Parameters . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a> <a href="#section-2.3">2.3</a>. Signature String Construction . . . . . . . . . . . . . . <a href="#page-7">7</a> <a href="#section-2.4">2.4</a>. Creating a Signature . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a> <a href="#section-2.5">2.5</a>. Verifying a Signature . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a> <a href="#section-3">3</a>. The &#x27;Signature&#x27; HTTP Authentication Scheme . . . . . . . . . <a href="#page-10">10</a> <a href="#section-3.1">3.1</a>. Authorization Header . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a> <a href="#section-3.1.1">3.1.1</a>. Initiating Signature Authorization . . . . . . . . . <a href="#page-11">11</a> <a href="#section-3.1.2">3.1.2</a>. RSA Example . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a> <a href="#section-3.1.3">3.1.3</a>. HMAC Example . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a> <a href="#section-4">4</a>. The &#x27;Signature&#x27; HTTP Header . . . . . . . . . . . . . . . . . <a href="#page-12">12</a> <a href="#section-4.1">4.1</a>. Signature Header . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a> <a href="#section-4.1.1">4.1.1</a>. RSA Example . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a> <a href="#section-4.1.2">4.1.2</a>. HMAC Example . . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a> <a href="#section-5">5</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a> <a href="#section-5.1">5.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a> <a href="#section-5.2">5.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-14">14</a> <a href="#section-5.3">5.3</a>. URIs . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a> <a href="#appendix-A">Appendix A</a>. Security Considerations . . . . . . . . . . . . . . <a href="#page-16">16</a> <a href="#appendix-B">Appendix B</a>. Extensions . . . . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a> <a href="#appendix-C">Appendix C</a>. Test Values . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a> <a href="#appendix-C.1">C.1</a>. Default Test . . . . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a> <a href="#appendix-C.2">C.2</a>. Basic Test . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a> <a href="#appendix-C.3">C.3</a>. All Headers Test . . . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a> <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 2]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> <a href="#appendix-D">Appendix D</a>. Acknowledgements . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a> <a href="#appendix-E">Appendix E</a>. IANA Considerations . . . . . . . . . . . . . . . . <a href="#page-20">20</a> <a href="#appendix-E.1">E.1</a>. Signature Authentication Scheme . . . . . . . . . . . . . <a href="#page-20">20</a> <a href="#appendix-E.2">E.2</a>. HTTP Signatures Algorithms Registry . . . . . . . . . . . <a href="#page-20">20</a> Authors&#x27; Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a> <span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span> This protocol extension is intended to provide a simple and standard way for clients to sign HTTP messages. HTTP Authentication [<a href="/doc/html/rfc2617" title="&quot;HTTP Authentication: Basic and Digest Access Authentication&quot;">RFC2617</a>] defines Basic and Digest authentication mechanisms, TLS 1.2 [<a href="/doc/html/rfc5246" title="&quot;The Transport Layer Security (TLS) Protocol Version 1.2&quot;">RFC5246</a>] defines cryptographically strong transport layer security, and OAuth 2.0 [<a href="/doc/html/rfc6749" title="&quot;The OAuth 2.0 Authorization Framework&quot;">RFC6749</a>] provides a fully- specified alternative for authorization of web service requests. Each of these approaches are employed on the Internet today with varying degrees of protection. However, none of these schemes are designed to cryptographically sign the HTTP messages themselves, which is required in order to ensure end-to-end message integrity. An added benefit of signing the HTTP message for the purposes of end- to-end message integrity is that the client can be authenticated using the same mechanism without the need for multiple round-trips. Several web service providers have invented their own schemes for signing HTTP messages, but to date, none have been standardized. While there are no techniques in this proposal that are novel beyond the previous art, it is useful to standardize a simple and cryptographically strong mechanism for digitally signing HTTP messages. This specification presents two mechanisms with distinct purposes: 1. The &quot;Signature&quot; scheme which is intended primarily to allow a sender to assert the contents of the message sent are correct and have not been altered during transmission or storage in a way that alters the meaning expressed in the original message as signed. Any party reading the message (the verifier) may independently confirm the validity of the message signature. This scheme is agnostic to the client/server direction and can be used to verify the contents of either HTTP requests, HTTP reponses, or both. 2. The &quot;Authorization&quot; scheme which is intended primarily to allow a sender to request access to a resource or resources by proving that they control a secret key. This specification allows for this both with a shared secret (using HMAC) or with public/ private keys. The &quot;Authorization&quot; scheme is typically used in authentication processes and not directly for message signing. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 3]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> As a consequence `Authorization` header is normally generated (and the message signed) by the HTTP client and the message verified by the HTTP server. <span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Using Signatures in HTTP Requests</span> It is common practice to protect sensitive website and API functionality via authentication mechanisms. Often, the entity accessing these APIs is a piece of automated software outside of an interactive human session. While there are mechanisms like OAuth and API secrets that are used to grant API access, each have their weaknesses such as unnecessary complexity for particular use cases or the use of shared secrets which may not be acceptable to an implementer. Shared secrets also prohibit any possibility for non- repudiation, while secure transports such as TLS do not provide for this at all. Digital signatures are widely used to provide authentication and integrity assurances without the need for shared secrets. They also do not require a round-trip in order to authenticate the client, and allow the integrity of a message to be verified independently of the transport (e.g. TLS). A server need only have an understanding of the key (e.g. through a mapping between the key being used to sign the content and the authorized entity) to verify that a message was signed by that entity. When optionally combined with asymmetric keys associated with an identity, this specification can also enable authentication of a client and server with or without prior knowledge of each other. <span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Using Signatures in HTTP Responses</span> HTTP messages are routinely altered as they traverse the infrastructure of the Internet, for mostly benign reasons. Gateways and proxies add, remove and alter headers for operational reasons, so a sender cannot rely on the recipient receiving exactly the message transmitted. By allowing a sender to sign specified headers, and recipient or intermediate system can confirm that the original intent of the sender is preserved, and including a Digest header can also verify the message body is not modified. This allows any recipient to easily confirm both the sender&#x27;s identity, and any incidental or malicious changes that alter the content or meaning of the message. <span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. The Components of a Signature</span> There are a number of components in a signature that are common between the &#x27;Signature&#x27; HTTP Authentication Scheme and the <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 4]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> &#x27;Signature&#x27; HTTP Header. This section details the components of the digital signature paremeters common to both schemes. <span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Signature Parameters</span> The following section details the Signature Parameters. <span class="h4"><a class="selflink" id="section-2.1.1" href="#section-2.1.1">2.1.1</a>. keyId</span> REQUIRED. The `keyId` field is an opaque string that the server can use to look up the component they need to validate the signature. It could be an SSH key fingerprint, a URL to machine-readable key data, an LDAP DN, etc. Management of keys and assignment of `keyId` is out of scope for this document. Implementations MUST be able to discover metadata about the key from the `keyId` such that they can determine the type of digital signature algorithm to employ when creating or verifying signatures. <span class="h4"><a class="selflink" id="section-2.1.2" href="#section-2.1.2">2.1.2</a>. signature</span> REQUIRED. The `signature` parameter is a base 64 encoded digital signature, as described in <a href="/doc/html/rfc4648">RFC 4648</a> <a href="/doc/html/rfc4648#section-4">[RFC4648], Section&nbsp;4</a> [<a href="#ref-5">5</a>]. The client uses the `algorithm` and `headers` Signature Parameters to form a canonicalized `signing string`. This `signing string` is then signed using the key associated with the `keyId` according to its digital signature algorithm. The `signature` parameter is then set to the base 64 encoding of the signature. <span class="h4"><a class="selflink" id="section-2.1.3" href="#section-2.1.3">2.1.3</a>. algorithm</span> RECOMMENDED. The `algorithm` parameter is used to specify the signature string construction mechanism. Valid values for this parameter can be found in the HTTP Signatures Algorithms Registry [<a href="#ref-6">6</a>] and MUST NOT be marked &quot;deprecated&quot;. Implementers SHOULD derive the digital signature algorithm used by an implementation from the key metadata identified by the `keyId` rather than from this field. If `algorithm` is provided and differs from the key metadata identified by the `keyId`, for example `rsa-sha256` but an EdDSA key is identified via `keyId`, then an implementation MUST produce an error. Implementers should note that previous versions of the `algorithm` parameter did not use the key information to derive the digital signature type and thus could be utilized by attackers to expose security vulnerabilities. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 5]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> <span class="h4"><a class="selflink" id="section-2.1.4" href="#section-2.1.4">2.1.4</a>. created</span> RECOMMENDED. The `created` field expresses when the signature was created. The value MUST be a Unix timestamp integer value. A signature with a `created` timestamp value that is in the future MUST NOT be processed. Using a Unix timestamp simplifies processing and avoids timezone management required by specifications such as <a href="/doc/html/rfc3339">RFC3339</a>. Subsecond precision is not supported. This value is useful when clients are not capable of controlling the `Date` HTTP Header such as when operating in certain web browser environments. <span class="h4"><a class="selflink" id="section-2.1.5" href="#section-2.1.5">2.1.5</a>. expires</span> OPTIONAL. The `expires` field expresses when the signature ceases to be valid. The value MUST be a Unix timestamp integer value. A signature with an `expires` timestamp value that is in the past MUST NOT be processed. Using a Unix timestamp simplifies processing and avoid timezone management existing in <a href="/doc/html/rfc3339">RFC3339</a>. Subsecod precision is allowed using decimal notation. <span class="h4"><a class="selflink" id="section-2.1.6" href="#section-2.1.6">2.1.6</a>. headers</span> OPTIONAL. The `headers` parameter is used to specify the list of HTTP headers included when generating the signature for the message. If specified, it SHOULD be a lowercased, quoted list of HTTP header fields, separated by a single space character. If not specified, implementations MUST operate as if the field were specified with a single value, `(created)`, in the list of HTTP headers. Note: 1. The list order is important, and MUST be specified in the order the HTTP header field-value pairs are concatenated together during Signature String Construction (<a href="#section-2.3">Section 2.3</a>) used during signing and verifying. 2. A zero-length `headers` parameter value MUST NOT be used, since it results in a signature of an empty string. <span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Ambiguous Parameters</span> If any of the parameters listed above are erroneously duplicated in the associated header field, then the the signature MUST NOT be processed. Any parameter that is not recognized as a parameter, or is not well-formed, MUST be ignored. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 6]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> <span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a>. Signature String Construction</span> A signed HTTP message needs to be tolerant of some trivial alterations during transmission as it goes through gateways, proxies, and other entities. These changes are often of little consequence and very benign, but also often not visible to or detectable by either the sender or the recipient. Simply signing the entire message that was transmitted by the sender is therefore not feasible: Even very minor changes would result in a signature which cannot be verified. This specification allows the sender to select which headers are meaningful by including their names in the `headers` Signature Parameter. The headers appearing in this parameter are then used to construct the intermediate Signature String, which is the data that is actually signed. In order to generate the string that is signed with a key, the client MUST use the values of each HTTP header field in the `headers` Signature Parameter, in the order they appear in the `headers` Signature Parameter. It is out of scope for this document to dictate what header fields an application will want to enforce, but implementers SHOULD at minimum include the `(request-target)` and `(created)` header fields if `algorithm` does not start with `rsa`, `hmac`, or `ecdsa`. Otherwise, `(request-target)` and `date` SHOULD be included in the signature. To include the HTTP request target in the signature calculation, use the special `(request-target)` header field name. To include the signature creation time, use the special `(created)` header field name. To include the signature expiration time, use the special `(expires)` header field name. 1. If the header field name is `(request-target)` then generate the header field value by concatenating the lowercased :method, an ASCII space, and the :path pseudo-headers (as specified in HTTP/2, <a href="#section-8.1.2.3">Section 8.1.2.3</a> [<a href="#ref-7">7</a>]). Note: For the avoidance of doubt, lowercasing only applies to the :method pseudo-header and not to the :path pseudo-header. 2. If the header field name is `(created)` and the `algorithm` parameter starts with `rsa`, `hmac`, or `ecdsa` an implementation MUST produce an error. If the `created` Signature Parameter is not specified, or is not an integer, an implementation MUST produce an error. Otherwise, the header field value is the integer expressed by the `created` signature parameter. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 7]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> 3. If the header field name is `(expires)` and the `algorithm` parameter starts with `rsa`, `hmac`, or `ecdsa` an implementation MUST produce an error. If the `expires` Signature Parameter is not specified, or is not an integer, an implementation MUST produce an error. Otherwise, the header field value is the integer expressed by the `created` signature parameter. 4. Create the header field string by concatenating the lowercased header field name followed with an ASCII colon `:`, an ASCII space ` `, and the header field value. Leading and trailing optional whitespace (OWS) in the header field value MUST be omitted (as specified in <a href="/doc/html/rfc7230">RFC7230</a> <a href="/doc/html/rfc7230#section-3.2.4">[RFC7230], Section&nbsp;3.2.4</a> [<a href="#ref-8">8</a>]). 1. If there are multiple instances of the same header field, all header field values associated with the header field MUST be concatenated, separated by a ASCII comma and an ASCII space `, `, and used in the order in which they will appear in the transmitted HTTP message. 2. If the header value (after removing leading and trailing whitespace) is a zero-length string, the signature string line correlating with that header will simply be the (lowercased) header name, an ASCII colon `:`, and an ASCII space ` `. 3. Any other modification to the header field value MUST NOT be made. 4. If a header specified in the headers parameter is malformed or cannot be matched with a provided header in the message, the implementation MUST produce an error. 5. If value is not the last value then append an ASCII newline `\n`. To illustrate the rules specified above, assume a `headers` parameter list with the value of `(request-target) (created) host date cache- control x-emptyheader x-example` with the following HTTP request headers: GET /foo HTTP/1.1 Host: example.org Date: Tue, 07 Jun 2014 20:51:35 GMT X-Example: Example header with some whitespace. X-EmptyHeader: Cache-Control: max-age=60 Cache-Control: must-revalidate <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 8]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> For the HTTP request headers above, the corresponding signature string is: (request-target): get /foo (created): 1402170695 host: example.org date: Tue, 07 Jun 2014 20:51:35 GMT cache-control: max-age=60, must-revalidate x-emptyheader: x-example: Example header with some whitespace. <span class="h3"><a class="selflink" id="section-2.4" href="#section-2.4">2.4</a>. Creating a Signature</span> In order to create a signature, a client MUST: 1. Use the `headers` and `algorithm` values as well as the contents of the HTTP message, to create the signature string. 2. Use the key associated with `keyId` to generate a digital signature on the signature string. 3. The `signature` is then generated by base 64 encoding the output of the digital signature algorithm. For example, assume that the `algorithm` value is &quot;hs2019&quot; and the `keyId` refers to an EdDSA public key. This would signal to the application that the signature string construction mechanism is the one defined in <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-9">9</a>], the signature string hashing function is SHA-512, and the signing algorithm is Ed25519 as defined in <a href="/doc/html/rfc8032">RFC 8032</a> <a href="/doc/html/rfc8032#section-5.1">[RFC8032], Section&nbsp;5.1</a>: Ed25519ph, Ed25519ctx, and Ed25519. The result of the signature creation algorithm should result in a binary string, which is then base 64 encoded and placed into the `signature` value. <span class="h3"><a class="selflink" id="section-2.5" href="#section-2.5">2.5</a>. Verifying a Signature</span> In order to verify a signature, a server MUST: 1. Use the received HTTP message, the `headers` value, and the Signature String Construction (<a href="#section-2.3">Section 2.3</a>) algorithm to recreate the signature. 2. The `algorithm`, `keyId`, and base 64 decoded `signature` listed in the Signature Parameters are then used to verify the authenticity of the digital signature. Note: The application verifying the signature MUST derive the digital signature algorithm from the metadata associated with the `keyId` and MUST NOT use the value of `algorithm` from the signed message. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 9]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> If a header specified in the `headers` value of the Signature Parameters (or the default item `(created)` where the `headers` value is not supplied) is absent from the message, the implementation MUST produce an error. For example, assume that the `algorithm` value was &quot;hs2019&quot; and and the `keyId` refers to an EdDSA public key. This would signal to the application that the signature string construction mechanism is the one defined in <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-10">10</a>], the signature string hashing function is SHA-512, and the signing algorithm is Ed25519 as defined in <a href="/doc/html/rfc8032">RFC 8032</a> <a href="/doc/html/rfc8032#section-5.1">[RFC8032], Section&nbsp;5.1</a>: Ed25519ph, Ed25519ctx, and Ed25519. The result of the signature verification algorithm should result in a successful verification unless the headers protected by the signature were tampered with in transit. <span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The &#x27;Signature&#x27; HTTP Authentication Scheme</span> The &quot;Signature&quot; authentication scheme is based on the model that the client must authenticate itself with a digital signature produced by either a private asymmetric key (e.g., RSA) or a shared symmetric key (e.g., HMAC). The scheme is parameterized enough such that it is not bound to any particular key type or signing algorithm. <span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Authorization Header</span> The client is expected to send an Authorization header (as defined in <a href="/doc/html/rfc7235">RFC 7235</a> <a href="/doc/html/rfc7235#section-4.1">[RFC7235], Section&nbsp;4.1</a> [<a href="#ref-11">11</a>]) where the &quot;auth-scheme&quot; is &quot;Signature&quot; and the &quot;auth-param&quot; parameters meet the requirements listed in <a href="#section-2">Section 2</a>: The Components of a Signature. The rest of this section uses the following HTTP request as an example. POST /foo HTTP/1.1 Host: example.org Date: Tue, 07 Jun 2014 20:51:35 GMT Content-Type: application/json Digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE= Content-Length: 18 {&quot;hello&quot;: &quot;world&quot;} Note that the use of the `Digest` header field is per <a href="/doc/html/rfc3230">RFC 3230</a> <a href="/doc/html/rfc3230#section-4.3.2">[RFC3230], Section&nbsp;4.3.2</a> [<a href="#ref-12">12</a>] and is included merely as a demonstration of how an implementer could include information about <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 10]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> the body of the message in the signature. The following sections also assume that the &quot;rsa-key-1&quot; keyId asserted by the client is an identifier meaningful to the server. <span class="h4"><a class="selflink" id="section-3.1.1" href="#section-3.1.1">3.1.1</a>. Initiating Signature Authorization</span> A server may notify a client when a resource is protected by requiring a signature. To initiate this process, the server will request that the client authenticate itself via a 401 response [<a href="#ref-13">13</a>] code. The server may optionally specify which HTTP headers it expects to be signed by specifying the `headers` parameter in the WWW-Authenticate header. For example: HTTP/1.1 401 Unauthorized Date: Thu, 08 Jun 2014 18:32:30 GMT Content-Length: 1234 Content-Type: text/html WWW-Authenticate: Signature realm=&quot;Example&quot;,headers=&quot;(request-target) (created)&quot; ... <span class="h4"><a class="selflink" id="section-3.1.2" href="#section-3.1.2">3.1.2</a>. RSA Example</span> The authorization header and signature would be generated as: Authorization: Signature keyId=&quot;rsa-key-1&quot;,algorithm=&quot;hs2019&quot;, headers=&quot;(request-target) (created) host digest content-length&quot;, signature=&quot;Base64(RSA-SHA512(signing string))&quot; The client would compose the signing string as: (request-target): post /foo\n (created): 1402174295 host: example.org\n digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n content-length: 18 Note that the &#x27;\n&#x27; symbols above are included to demonstrate where the new line character should be inserted. There is no new line on the final line of the signing string. Each HTTP header above is displayed on a new line to provide better readability of the example. For an RSA-based signature, the authorization header and signature would then be generated as: <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 11]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Authorization: Signature keyId=&quot;rsa-key-1&quot;,algorithm=&quot;hs2019&quot;, headers=&quot;(request-target) (created) host digest content-length&quot;, signature=&quot;Base64(RSA-SHA512(signing string))&quot; <span class="h4"><a class="selflink" id="section-3.1.3" href="#section-3.1.3">3.1.3</a>. HMAC Example</span> For an HMAC-based signature without a list of headers specified, the authorization header and signature would be generated as: Authorization: Signature keyId=&quot;hmac-key-1&quot;,algorithm=&quot;hs2019&quot;, headers=&quot;(request-target) (created) host digest content-length&quot;, signature=&quot;Base64(HMAC-SHA512(signing string))&quot; The only difference between the RSA Example and the HMAC Example is the digital signature algorithm that is used. The client would compose the signing string in the same way as the RSA Example above: (request-target): post /foo\n (created): 1402174295 host: example.org\n digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n content-length: 18 <span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. The &#x27;Signature&#x27; HTTP Header</span> The &quot;Signature&quot; HTTP Header provides a mechanism to link the headers of a message (client request or server response) to a digital signature. By including the &quot;Digest&quot; header with a properly formatted digest, the message body can also be linked to the signature. The signature is generated and verified either using a shared secret (e.g. HMAC) or public/private keys (e.g. RSA, EC). This allows the receiver and/or any intermediate system to immediately or later verify the integrity of the message. When the signature is generated with a private key it can also provide a measure of non-repudiation, though a full implementation of a non- repudiatable statement is beyond the scope of this specification and highly dependent on implementation. The &quot;Signature&quot; scheme can also be used for authentication similar to the purpose of the &#x27;Signature&#x27; HTTP Authentication Scheme (<a href="#section-3">Section 3</a>). The scheme is parameterized enough such that it is not bound to any particular key type or signing algorithm. <span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Signature Header</span> The sender is expected to transmit a header (as defined in <a href="/doc/html/rfc7230">RFC 7230</a> <a href="/doc/html/rfc7230#section-3.2">[RFC7230], Section&nbsp;3.2</a> [<a href="#ref-14">14</a>]) where the &quot;field-name&quot; is &quot;Signature&quot;, and the &quot;field-value&quot; contains one or more &quot;auth-param&quot;s (as defined <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 12]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> in <a href="/doc/html/rfc7235">RFC 7235</a> <a href="/doc/html/rfc7235#section-4.1">[RFC7235], Section&nbsp;4.1</a> [<a href="#ref-15">15</a>]) where the &quot;auth-param&quot; parameters meet the requirements listed in <a href="#section-2">Section 2</a>: The Components of a Signature. The rest of this section uses the following HTTP request as an example. POST /foo HTTP/1.1 Host: example.org Date: Tue, 07 Jun 2014 20:51:35 GMT Content-Type: application/json Digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE= Content-Length: 18 {&quot;hello&quot;: &quot;world&quot;} The following sections assume that the &quot;rsa-key-1&quot; keyId provided by the signer is an identifier meaningful to the server. <span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. RSA Example</span> The signature header and signature would be generated as: Signature: keyId=&quot;rsa-key-1&quot;,algorithm=&quot;hs2019&quot;, created=1402170695, expires=1402170995, headers=&quot;(request-target) (created) (expires) host date digest content-length&quot;, signature=&quot;Base64(RSA-SHA256(signing string))&quot; The client would compose the signing string as: (request-target): post /foo\n (created): 1402170695 (expires): 1402170995 host: example.org\n digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n content-length: 18 Note that the &#x27;\n&#x27; symbols above are included to demonstrate where the new line character should be inserted. There is no new line on the final line of the signing string. Each HTTP header above is displayed on a new line to provide better readability of the example. For an RSA-based signature, the authorization header and signature would then be generated as: <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 13]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Signature: keyId=&quot;rsa-key-1&quot;,algorithm=&quot;hs2019&quot;,created=1402170695, headers=&quot;(request-target) (created) host digest content-length&quot;, signature=&quot;Base64(RSA-SHA512(signing string))&quot; <span class="h4"><a class="selflink" id="section-4.1.2" href="#section-4.1.2">4.1.2</a>. HMAC Example</span> For an HMAC-based signature without a list of headers specified, the authorization header and signature would be generated as: Signature: keyId=&quot;hmac-key-1&quot;,algorithm=&quot;hs2019&quot;,created=1402170695, headers=&quot;(request-target) (created) host digest content-length&quot;, signature=&quot;Base64(HMAC-SHA512(signing string))&quot; The only difference between the RSA Example and the HMAC Example is the signature algorithm that is used. The client would compose the signing string in the same way as the RSA Example above: (request-target): post /foo\n (created): 1402170695 host: example.org\n digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE=\n content-length: 18 <span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. References</span> <span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Normative References</span> [<a id="ref-RFC4648">RFC4648</a>] Josefsson, S., &quot;The Base16, Base32, and Base64 Data Encodings&quot;, <a href="/doc/html/rfc4648">RFC 4648</a>, DOI 10.17487/RFC4648, October 2006, &lt;<a href="https://www.rfc-editor.org/info/rfc4648">https://www.rfc-editor.org/info/rfc4648</a>&gt;. [<a id="ref-RFC7230">RFC7230</a>] Fielding, R., Ed. and J. Reschke, Ed., &quot;Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing&quot;, <a href="/doc/html/rfc7230">RFC 7230</a>, DOI 10.17487/RFC7230, June 2014, &lt;<a href="https://www.rfc-editor.org/info/rfc7230">https://www.rfc-editor.org/info/rfc7230</a>&gt;. [<a id="ref-RFC7235">RFC7235</a>] Fielding, R., Ed. and J. Reschke, Ed., &quot;Hypertext Transfer Protocol (HTTP/1.1): Authentication&quot;, <a href="/doc/html/rfc7235">RFC 7235</a>, DOI 10.17487/RFC7235, June 2014, &lt;<a href="https://www.rfc-editor.org/info/rfc7235">https://www.rfc-editor.org/info/rfc7235</a>&gt;. <span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Informative References</span> [<a id="ref-RFC2617">RFC2617</a>] Franks, J., Hallam-Baker, P., Hostetler, J., Lawrence, S., Leach, P., Luotonen, A., and L. Stewart, &quot;HTTP Authentication: Basic and Digest Access Authentication&quot;, <a href="/doc/html/rfc2617">RFC 2617</a>, DOI 10.17487/RFC2617, June 1999, &lt;<a href="https://www.rfc-editor.org/info/rfc2617">https://www.rfc-editor.org/info/rfc2617</a>&gt;. <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 14]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> [<a id="ref-RFC3230">RFC3230</a>] Mogul, J. and A. Van Hoff, &quot;Instance Digests in HTTP&quot;, <a href="/doc/html/rfc3230">RFC 3230</a>, DOI 10.17487/RFC3230, January 2002, &lt;<a href="https://www.rfc-editor.org/info/rfc3230">https://www.rfc-editor.org/info/rfc3230</a>&gt;. [<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, &quot;The Transport Layer Security (TLS) Protocol Version 1.2&quot;, <a href="/doc/html/rfc5246">RFC 5246</a>, DOI 10.17487/RFC5246, August 2008, &lt;<a href="https://www.rfc-editor.org/info/rfc5246">https://www.rfc-editor.org/info/rfc5246</a>&gt;. [<a id="ref-RFC6234">RFC6234</a>] Eastlake 3rd, D. and T. Hansen, &quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;, <a href="/doc/html/rfc6234">RFC 6234</a>, DOI 10.17487/RFC6234, May 2011, &lt;<a href="https://www.rfc-editor.org/info/rfc6234">https://www.rfc-editor.org/info/rfc6234</a>&gt;. [<a id="ref-RFC6749">RFC6749</a>] Hardt, D., Ed., &quot;The OAuth 2.0 Authorization Framework&quot;, <a href="/doc/html/rfc6749">RFC 6749</a>, DOI 10.17487/RFC6749, October 2012, &lt;<a href="https://www.rfc-editor.org/info/rfc6749">https://www.rfc-editor.org/info/rfc6749</a>&gt;. [<a id="ref-RFC8017">RFC8017</a>] Moriarty, K., Ed., Kaliski, B., Jonsson, J., and A. Rusch, &quot;PKCS #1: RSA Cryptography Specifications Version 2.2&quot;, <a href="/doc/html/rfc8017">RFC 8017</a>, DOI 10.17487/RFC8017, November 2016, &lt;<a href="https://www.rfc-editor.org/info/rfc8017">https://www.rfc-editor.org/info/rfc8017</a>&gt;. [<a id="ref-RFC8032">RFC8032</a>] Josefsson, S. and I. Liusvaara, &quot;Edwards-Curve Digital Signature Algorithm (EdDSA)&quot;, <a href="/doc/html/rfc8032">RFC 8032</a>, DOI 10.17487/RFC8032, January 2017, &lt;<a href="https://www.rfc-editor.org/info/rfc8032">https://www.rfc-editor.org/info/rfc8032</a>&gt;. <span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. URIs</span> [<a id="ref-1">1</a>] <a href="https://w3c-dvcg.github.io/">https://w3c-dvcg.github.io/</a> [<a id="ref-2">2</a>] <a href="https://w3c-ccg.github.io/">https://w3c-ccg.github.io/</a> [<a id="ref-3">3</a>] <a href="https://github.com/w3c-dvcg/http-signatures/issues">https://github.com/w3c-dvcg/http-signatures/issues</a> [<a id="ref-4">4</a>] mailto:public-credentials@w3.org [<a id="ref-5">5</a>] <a href="https://tools.ietf.org/html/rfc4648#section-4">https://tools.ietf.org/html/rfc4648#section-4</a> [<a id="ref-6">6</a>] #hsa-registry [<a id="ref-7">7</a>] <a href="https://tools.ietf.org/html/rfc7540#section-8.1.2.3">https://tools.ietf.org/html/rfc7540#section-8.1.2.3</a> [<a id="ref-8">8</a>] <a href="https://tools.ietf.org/html/rfc7230#section-3.2.4">https://tools.ietf.org/html/rfc7230#section-3.2.4</a> [<a id="ref-9">9</a>] #canonicalization <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 15]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> [<a id="ref-10">10</a>] #canonicalization [<a id="ref-11">11</a>] <a href="https://tools.ietf.org/html/rfc7235#section-2.1">https://tools.ietf.org/html/rfc7235#section-2.1</a> [<a id="ref-12">12</a>] <a href="https://tools.ietf.org/html/rfc3230#section-4.3.2">https://tools.ietf.org/html/rfc3230#section-4.3.2</a> [<a id="ref-13">13</a>] <a href="https://tools.ietf.org/html/rfc7235#section-3.1">https://tools.ietf.org/html/rfc7235#section-3.1</a> [<a id="ref-14">14</a>] <a href="https://tools.ietf.org/html/rfc7230#section-3.2">https://tools.ietf.org/html/rfc7230#section-3.2</a> [<a id="ref-15">15</a>] <a href="https://tools.ietf.org/html/rfc7235#section-4.1">https://tools.ietf.org/html/rfc7235#section-4.1</a> [<a id="ref-16">16</a>] <a href="https://web-payments.org/specs/source/http-signatures-audit/">https://web-payments.org/specs/source/http-signatures-audit/</a> [<a id="ref-17">17</a>] <a href="https://web-payments.org/specs/source/http-signature-nonces/">https://web-payments.org/specs/source/http-signature-nonces/</a> [<a id="ref-18">18</a>] <a href="https://web-payments.org/specs/source/http-signature-trailers/">https://web-payments.org/specs/source/http-signature-trailers/</a> [<a id="ref-19">19</a>] <a href="https://www.iana.org/assignments/http-auth-scheme-signature">https://www.iana.org/assignments/http-auth-scheme-signature</a> [<a id="ref-20">20</a>] <a href="https://www.iana.org/assignments/http-authschemes">https://www.iana.org/assignments/http-authschemes</a> [<a id="ref-21">21</a>] <a href="https://www.iana.org/assignments/shm-algorithms">https://www.iana.org/assignments/shm-algorithms</a> [<a id="ref-22">22</a>] #canonicalization [<a id="ref-23">23</a>] #canonicalization [<a id="ref-24">24</a>] #canonicalization [<a id="ref-25">25</a>] #canonicalization [<a id="ref-26">26</a>] #canonicalization <span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Security Considerations</span> There are a number of security considerations to take into account when implementing or utilizing this specification. A thorough security analysis of this protocol, including its strengths and weaknesses, can be found in Security Considerations for HTTP Signatures [<a href="#ref-16">16</a>]. <span class="h2"><a class="selflink" id="appendix-B" href="#appendix-B">Appendix B</a>. Extensions</span> This specification was designed to be simple, modular, and extensible. There are a number of other specifications that build on this one. For example, the HTTP Signature Nonces [<a href="#ref-17">17</a>] specification details how to use HTTP Signatures over a non-secured channel like <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 16]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> HTTP and the HTTP Signature Trailers [<a href="#ref-18">18</a>] specification explains how to apply HTTP Signatures to streaming content. Developers that desire more functionality than this specification provides are urged to ensure that an extension specification doesn&#x27;t already exist before implementing a proprietary extension. If extensions to this specification are made by adding new Signature Parameters, those extension parameters MUST be registered in the Signature Authentication Scheme Registry. The registry will be created and maintained at (the suggested URI) <a href="https://www.iana.org/assignments/http-auth-scheme-signature">https://www.iana.org/assignments/http-auth-scheme-signature</a> [<a href="#ref-19">19</a>]. An example entry in this registry is included below: Signature Parameter: nonce Reference to specification: [HTTP_AUTH_SIGNATURE_NONCE], Section XYZ. Notes (optional): The HTTP Signature Nonces specification details how to use HTTP Signatures over a unsecured channel like HTTP. <span class="h2"><a class="selflink" id="appendix-C" href="#appendix-C">Appendix C</a>. Test Values</span> WARNING: THESE TEST VECTORS ARE OLD AND POSSIBLY WRONG. THE NEXT VERSION OF THIS SPECIFICATION WILL CONTAIN THE PROPER TEST VECTORS. The following test data uses the following RSA 2048-bit keys, which we will refer to as `keyId=Test` in the following samples: -----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCFENGw33yGihy92pDjZQhl0C3 6rPJj+CvfSC8+q28hxA161QFNUd13wuCTUcq0Qd2qsBe/2hFyc2DCJJg0h1L78+6 Z4UMR7EOcpfdUE9Hf3m/hs+FUR45uBJeDK1HSFHD8bHKD6kv8FPGfJTotc+2xjJw oYi+1hqp1fIekaxsyQIDAQAB -----END PUBLIC KEY----- -----BEGIN RSA PRIVATE KEY----- MIICXgIBAAKBgQDCFENGw33yGihy92pDjZQhl0C36rPJj+CvfSC8+q28hxA161QF NUd13wuCTUcq0Qd2qsBe/2hFyc2DCJJg0h1L78+6Z4UMR7EOcpfdUE9Hf3m/hs+F UR45uBJeDK1HSFHD8bHKD6kv8FPGfJTotc+2xjJwoYi+1hqp1fIekaxsyQIDAQAB AoGBAJR8ZkCUvx5kzv+utdl7T5MnordT1TvoXXJGXK7ZZ+UuvMNUCdN2QPc4sBiA QWvLw1cSKt5DsKZ8UETpYPy8pPYnnDEz2dDYiaew9+xEpubyeW2oH4Zx71wqBtOK kqwrXa/pzdpiucRRjk6vE6YY7EBBs/g7uanVpGibOVAEsqH1AkEA7DkjVH28WDUg f1nqvfn2Kj6CT7nIcE3jGJsZZ7zlZmBmHFDONMLUrXR/Zm3pR5m0tCmBqa5RK95u 412jt1dPIwJBANJT3v8pnkth48bQo/fKel6uEYyboRtA5/uHuHkZ6FQF7OUkGogc mSJluOdc5t6hI1VsLn0QZEjQZMEOWr+wKSMCQQCC4kXJEsHAve77oP6HtG/IiEn7 kpyUXRNvFsDE0czpJJBvL/aRFUJxuRK91jhjC68sA7NsKMGg5OXb5I5Jj36xAkEA gIT7aFOYBFwGgQAQkWNKLvySgKbAZRTeLBacpHMuQdl1DfdntvAyqpAZ0lY0RKmW G6aFKaqQfOXKCyWoUiVknQJAXrlgySFci/2ueKlIE1QqIiLSZ8V8OlpFLRnb1pzI 7U1yQXnTAEFYM560yJlzUpOb1V4cScGd365tiSMvxLOvTA== -----END RSA PRIVATE KEY----- <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 17]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> All examples use this request: POST /foo?param=value&amp;pet=dog HTTP/1.1 Host: example.com Date: Sun, 05 Jan 2014 21:31:40 GMT Content-Type: application/json Digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE= Content-Length: 18 {&quot;hello&quot;: &quot;world&quot;} <span class="h3"><a class="selflink" id="appendix-C.1" href="#appendix-C.1">C.1</a>. Default Test</span> If a list of headers is not included, the date is the only header that is signed by default for rsa-sha256. The string to sign would be: date: Sun, 05 Jan 2014 21:31:40 GMT The Authorization header would be: Authorization: Signature keyId=&quot;Test&quot;,algorithm=&quot;rsa-sha256&quot;, signature=&quot;SjWJWbWN7i0wzBvtPl8rbASWz5xQW6mcJmn+ibttBqtifLN7Sazz 6m79cNfwwb8DMJ5cou1s7uEGKKCs+FLEEaDV5lp7q25WqS+lavg7T8hc0GppauB 6hbgEKTwblDHYGEtbGmtdHgVCk9SuS13F0hZ8FD0k/5OxEPXe5WozsbM=&quot; The Signature header would be: Signature: keyId=&quot;Test&quot;,algorithm=&quot;rsa-sha256&quot;, signature=&quot;SjWJWbWN7i0wzBvtPl8rbASWz5xQW6mcJmn+ibttBqtifLN7Sazz 6m79cNfwwb8DMJ5cou1s7uEGKKCs+FLEEaDV5lp7q25WqS+lavg7T8hc0GppauB 6hbgEKTwblDHYGEtbGmtdHgVCk9SuS13F0hZ8FD0k/5OxEPXe5WozsbM=&quot; <span class="h3"><a class="selflink" id="appendix-C.2" href="#appendix-C.2">C.2</a>. Basic Test</span> The minimum recommended data to sign is the (request-target), host, and date. In this case, the string to sign would be: (request-target): post /foo?param=value&amp;pet=dog host: example.com date: Sun, 05 Jan 2014 21:31:40 GMT The Authorization header would be: <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 18]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Authorization: Signature keyId=&quot;Test&quot;,algorithm=&quot;rsa-sha256&quot;, headers=&quot;(request-target) host date&quot;, signature=&quot;qdx+H7PHHDZgy4y/Ahn9Tny9V3GP6YgBPyUXMmoxWtLbHpUnXS 2mg2+SbrQDMCJypxBLSPQR2aAjn7ndmw2iicw3HMbe8VfEdKFYRqzic+efkb3 nndiv/x1xSHDJWeSWkx3ButlYSuBskLu6kd9Fswtemr3lgdDEmn04swr2Os0=&quot; <span class="h3"><a class="selflink" id="appendix-C.3" href="#appendix-C.3">C.3</a>. All Headers Test</span> A strong signature including all of the headers and a digest of the body of the HTTP request would result in the following signing string: (request-target): post /foo?param=value&amp;pet=dog host: example.com date: Sun, 05 Jan 2014 21:31:40 GMT content-type: application/json digest: SHA-256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE= content-length: 18 The Authorization header would be: Authorization: Signature keyId=&quot;Test&quot;,algorithm=&quot;rsa-sha256&quot;, created=1402170695, expires=1402170699, headers=&quot;(request-target) (created) (expires) host date content-type digest content-length&quot;, signature=&quot;vSdrb+dS3EceC9bcwHSo4MlyKS59iFIrhgYkz8+oVLEEzmYZZvRs 8rgOp+63LEM3v+MFHB32NfpB2bEKBIvB1q52LaEUHFv120V01IL+TAD48XaERZF ukWgHoBTLMhYS2Gb51gWxpeIq8knRmPnYePbF5MOkR0Zkly4zKH7s1dE=&quot; The Signature header would be: Signature: keyId=&quot;Test&quot;,algorithm=&quot;rsa-sha256&quot;, created=1402170695, expires=1402170699, headers=&quot;(request-target) (created) (expires) host date content-type digest content-length&quot;, signature=&quot;vSdrb+dS3EceC9bcwHSo4MlyKS59iFIrhgYkz8+oVLEEzmYZZvRs 8rgOp+63LEM3v+MFHB32NfpB2bEKBIvB1q52LaEUHFv120V01IL+TAD48XaERZF ukWgHoBTLMhYS2Gb51gWxpeIq8knRmPnYePbF5MOkR0Zkly4zKH7s1dE=&quot; <span class="h2"><a class="selflink" id="appendix-D" href="#appendix-D">Appendix D</a>. Acknowledgements</span> The editor would like to thank the following individuals for feedback on and implementations of the specification (in alphabetical order): Mark Adamcin, Mark Allen, Paul Annesley, Karl Boehlmark, Stephane Bortzmeyer, Sarven Capadisli, Liam Dennehy, ductm54, Stephen Farrell, Phillip Hallam-Baker, Eric Holmes, Andrey Kislyuk, Adam Knight, Dave Lehn, Dave Longley, James H. Manger, Ilari Liusvaara, Mark Nottingham, Yoav Nir, Adrian Palmer, Lucas Pardue, Roberto Polli, <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 19]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Julian Reschke, Michael Richardson, Wojciech Rygielski, Adam Scarr, Cory J. Slep, Dirk Stein, Henry Story, Lukasz Szewc, Chris Webber, and Jeffrey Yasskin <span class="h2"><a class="selflink" id="appendix-E" href="#appendix-E">Appendix E</a>. IANA Considerations</span> <span class="h3"><a class="selflink" id="appendix-E.1" href="#appendix-E.1">E.1</a>. Signature Authentication Scheme</span> The following entry should be added to the Authentication Scheme Registry located at <a href="https://www.iana.org/assignments/http-authschemes">https://www.iana.org/assignments/http-authschemes</a> [<a href="#ref-20">20</a>] Authentication Scheme Name: Signature Reference: [RFC_THIS_DOCUMENT], <a href="#section-2">Section 2</a>. Notes (optional): The Signature scheme is designed for clients to authenticate themselves with a server. <span class="h3"><a class="selflink" id="appendix-E.2" href="#appendix-E.2">E.2</a>. HTTP Signatures Algorithms Registry</span> The following initial entries should be added to the Canonicalization Algorithms Registry to be created and maintained at (the suggested URI) <a href="https://www.iana.org/assignments/shm-algorithms">https://www.iana.org/assignments/shm-algorithms</a> [<a href="#ref-21">21</a>]: Editor&#x27;s note: The references in this section are problematic as many of the specifications that they refer to are too implementation specific, rather than just pointing to the proper signature and hashing specifications. A better approach might be just specifying the signature and hashing function specifications, leaving implementers to connect the dots (which are not that hard to connect). Algorithm Name: hs2019 Status: active Canonicalization Algorithm: [RFC_THIS_DOCUMENT], <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-22">22</a>] Hash Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> [<a href="/doc/html/rfc6234" title="&quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;">RFC6234</a>], SHA-512 (SHA-2 with 512-bits of digest output) Digital Signature Algorithm: Derived from metadata associated with `keyId`. Recommend support for <a href="/doc/html/rfc8017">RFC 8017</a> <a href="/doc/html/rfc8017#section-8.1">[RFC8017], Section&nbsp;8.1</a>: RSASSA-PSS, <a href="/doc/html/rfc6234">RFC 6234</a> <a href="/doc/html/rfc6234#section-7.1">[RFC6234], Section&nbsp;7.1</a>: SHA-Based HMACs, ANSI X9.62-2005 ECDSA, P-256, and <a href="/doc/html/rfc8032">RFC 8032</a> <a href="/doc/html/rfc8032#section-5.1">[RFC8032], Section&nbsp;5.1</a>: Ed25519ph, Ed25519ctx, and Ed25519. Algorithm Name: rsa-sha1 Status: deprecated, SHA-1 not secure. Canonicalization Algorithm: [RFC_THIS_DOCUMENT], <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-23">23</a>] <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 20]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Hash Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> [<a href="/doc/html/rfc6234" title="&quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;">RFC6234</a>], SHA-1 (SHA-1 with 160-bits of digest output) Digital Signature Algorithm: <a href="/doc/html/rfc8017">RFC 8017</a> <a href="/doc/html/rfc8017#section-8.2">[RFC8017], Section&nbsp;8.2</a>: RSASSA- PKCS1-v1_5 Algorithm Name: rsa-sha256 Status: deprecated, specifying signature algorithm enables attack vector. Canonicalization Algorithm: [RFC_THIS_DOCUMENT], <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-24">24</a>] Hash Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> [<a href="/doc/html/rfc6234" title="&quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;">RFC6234</a>], SHA-256 (SHA-2 with 256-bits of digest output) Digital Signature Algorithm: <a href="/doc/html/rfc8017">RFC 8017</a> <a href="/doc/html/rfc8017#section-8.2">[RFC8017], Section&nbsp;8.2</a>: RSASSA- PKCS1-v1_5 Algorithm Name: hmac-sha256 Status: deprecated, specifying signature algorithm enables attack vector. Canonicalization Algorithm: [RFC_THIS_DOCUMENT], <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-25">25</a>] Hash Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> [<a href="/doc/html/rfc6234" title="&quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;">RFC6234</a>], SHA-256 (SHA-2 with 256-bits of digest output) Message Authentication Code Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> <a href="/doc/html/rfc6234#section-7.1">[RFC6234], Section&nbsp;7.1</a>: SHA-Based HMACs Algorithm Name: ecdsa-sha256 Status: deprecated, specifying signature algorithm enables attack vector. Canonicalization Algorithm: [RFC_THIS_DOCUMENT], <a href="#section-2.3">Section 2.3</a>: Signature String Construction [<a href="#ref-26">26</a>] Hash Algorithm: <a href="/doc/html/rfc6234">RFC 6234</a> [<a href="/doc/html/rfc6234" title="&quot;US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)&quot;">RFC6234</a>], SHA-256 (SHA-2 with 256-bits of digest output) Digital Signature Algorithm: ANSI X9.62-2005 ECDSA, P-256 Authors&#x27; Addresses Mark Cavage Oracle 500 Oracle Parkway Redwood Shores, CA 94065 US Phone: +1 415 400 0626 Email: mcavage@gmail.com URI: <a href="https://www.oracle.com/">https://www.oracle.com/</a> <span class="grey">Cavage &amp; Sporny Expires April 22, 2020 [Page 21]</span></pre> <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span> <span class="grey">Internet-Draft Signing HTTP Messages October 2019</span> Manu Sporny Digital Bazaar 203 Roanoke Street W. Blacksburg, VA 24060 US Phone: +1 540 961 4469 Email: msporny@digitalbazaar.com URI: <a href="https://manu.sporny.org/">https://manu.sporny.org/</a> Cavage &amp; Sporny Expires April 22, 2020 [Page 22] </pre></div> </div> </div> <div class="d-print-none col-md-3 bg-light-subtle collapse show" id="sidebar"> <div class="position-fixed border-start sidebar overflow-scroll overscroll-none no-scrollbar"> <div class="d-flex flex-column vh-100 pt-2 pt-lg-3 ps-3 pl-md-2 pl-lg-3"> <div> <a class="btn btn-primary btn-sm" href="/doc/draft-cavage-http-signatures/">Datatracker</a> <p class="fw-bold pt-2"> draft-cavage-http-signatures-12 <br> <span class="text-danger">Replaced Internet-Draft</span> (individual) </p> </div> <ul class="nav nav-tabs nav-fill small me-2" role="tablist"> <li class="nav-item" role="presentation" title="Document information"> <button class="nav-link px-2" id="docinfo-tab" data-bs-toggle="tab" data-bs-target="#docinfo-tab-pane" type="button" role="tab" aria-controls="docinfo-tab-pane" aria-selected="true"> <i class="bi bi-info-circle"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Info</span> </button> </li> <li class="nav-item" role="presentation" title="Table of contents"> <button class="nav-link px-2" id="toc-tab" data-bs-toggle="tab" data-bs-target="#toc-tab-pane" type="button" role="tab" aria-controls="toc-tab-pane" aria-selected="false"> <i class="bi bi-list-ol"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Contents</span> </button> </li> <li class="nav-item" role="presentation" title="Preferences"> <button class="nav-link px-2" id="pref-tab" data-bs-toggle="tab" data-bs-target="#pref-tab-pane" type="button" role="tab" aria-controls="pref-tab-pane" aria-selected="false"> <i class="bi bi-gear"></i><span class="d-none d-md-block d-xl-inline ms-xl-1">Prefs</span> </button> </li> </ul> <div class="overflow-auto tab-content pt-2 me-2"> <div class="tab-pane" id="docinfo-tab-pane" role="tabpanel" aria-labelledby="docinfo-tab" tabindex="0"> <table class="table table-sm table-borderless"> <tbody class="meta align-top "> <tr> <th scope="row">Document</th> <th scope="row">Document type</th> <td class="edit"></td> <td> <span class="text-danger">Replaced Internet-Draft</span> (individual) <div class="badge rounded-pill text-bg-warning"> Expired &amp; archived </div> <div class="alert alert-warning small p-2 mt-2" role="alert"> This document is an Internet-Draft (I-D). Anyone may submit an I-D to the IETF. This I-D is <strong>not endorsed by the IETF</strong> and has <strong>no formal standing</strong> in the <a href="/doc/rfc2026/">IETF standards process</a>. </div> </td> </tr> <tr> <td></td> <th scope="row">Select version</th> <td class="edit"></td> <td> <ul class="revision-list pagination pagination-sm text-center flex-wrap my-0"> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-00" > 00 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-01" rel="nofollow"> 01 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-02" rel="nofollow"> 02 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-03" rel="nofollow"> 03 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-04" rel="nofollow"> 04 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-05" rel="nofollow"> 05 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-06" rel="nofollow"> 06 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-07" rel="nofollow"> 07 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-08" rel="nofollow"> 08 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-09" rel="nofollow"> 09 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-10" rel="nofollow"> 10 </a> </li> <li class="page-item "> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-11" rel="nofollow"> 11 </a> </li> <li class="page-item active"> <a class="page-link" href="/doc/html/draft-cavage-http-signatures-12" > 12 </a> </li> </ul> </td> </tr> <tr> <td></td> <th scope="row">Compare versions</th> <td class="edit"></td> <td> <form class="form-horizontal diff-form" action="https://author-tools.ietf.org/iddiff" method="get" target="_blank"> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="From revision" name="url1"> <option value="draft-cavage-http-signatures-12"> draft-cavage-http-signatures-12 </option> <option value="draft-cavage-http-signatures-11" selected> draft-cavage-http-signatures-11 </option> <option value="draft-cavage-http-signatures-10"> draft-cavage-http-signatures-10 </option> <option value="draft-cavage-http-signatures-09"> draft-cavage-http-signatures-09 </option> <option value="draft-cavage-http-signatures-08"> draft-cavage-http-signatures-08 </option> <option value="draft-cavage-http-signatures-07"> draft-cavage-http-signatures-07 </option> <option value="draft-cavage-http-signatures-06"> draft-cavage-http-signatures-06 </option> <option value="draft-cavage-http-signatures-05"> draft-cavage-http-signatures-05 </option> <option value="draft-cavage-http-signatures-04"> draft-cavage-http-signatures-04 </option> <option value="draft-cavage-http-signatures-03"> draft-cavage-http-signatures-03 </option> <option value="draft-cavage-http-signatures-02"> draft-cavage-http-signatures-02 </option> <option value="draft-cavage-http-signatures-01"> draft-cavage-http-signatures-01 </option> <option value="draft-cavage-http-signatures-00"> draft-cavage-http-signatures-00 </option> </select> <select class="form-select form-select-sm mb-1 select2-field" data-max-entries="1" data-width="resolve" data-allow-clear="false" data-minimum-input-length="0" aria-label="To revision" name="url2"> <option value="draft-cavage-http-signatures-12" selected> draft-cavage-http-signatures-12 </option> <option value="draft-cavage-http-signatures-11"> draft-cavage-http-signatures-11 </option> <option value="draft-cavage-http-signatures-10"> draft-cavage-http-signatures-10 </option> <option value="draft-cavage-http-signatures-09"> draft-cavage-http-signatures-09 </option> <option value="draft-cavage-http-signatures-08"> draft-cavage-http-signatures-08 </option> <option value="draft-cavage-http-signatures-07"> draft-cavage-http-signatures-07 </option> <option value="draft-cavage-http-signatures-06"> draft-cavage-http-signatures-06 </option> <option value="draft-cavage-http-signatures-05"> draft-cavage-http-signatures-05 </option> <option value="draft-cavage-http-signatures-04"> draft-cavage-http-signatures-04 </option> <option value="draft-cavage-http-signatures-03"> draft-cavage-http-signatures-03 </option> <option value="draft-cavage-http-signatures-02"> draft-cavage-http-signatures-02 </option> <option value="draft-cavage-http-signatures-01"> draft-cavage-http-signatures-01 </option> <option value="draft-cavage-http-signatures-00"> draft-cavage-http-signatures-00 </option> </select> <button type="submit" class="btn btn-primary btn-sm" value="--html" name="difftype"> Side-by-side </button> <button type="submit" class="btn btn-primary btn-sm" value="--hwdiff" name="difftype"> Inline </button> </form> </td> </tr> <tr> <td></td> <th scope="row">Authors</th> <td class="edit"> </td> <td> <span ><a title="Datatracker profile of Mark Cavage" href="/person/mark.cavage@joyent.com" >Mark Cavage</a> <a href="mailto:mark.cavage%40joyent.com" aria-label="Compose email to mark.cavage@joyent.com" title="Compose email to mark.cavage@joyent.com"> <i class="bi bi-envelope"></i></a></span>, <span ><a title="Datatracker profile of Manu Sporny" href="/person/msporny@digitalbazaar.com" >Manu Sporny</a> <a href="mailto:msporny%40digitalbazaar.com" aria-label="Compose email to msporny@digitalbazaar.com" title="Compose email to msporny@digitalbazaar.com"> <i class="bi bi-envelope"></i></a></span> <br> <a class="btn btn-primary btn-sm mt-1" href="mailto:draft-cavage-http-signatures@ietf.org?subject=draft-cavage-http-signatures" title="Send email to the document authors">Email authors</a> </td> </tr> <tr> <td></td> <th scope="row"> Replaced by </th> <td class="edit"> </td> <td> <a href="/doc/html/draft-ietf-httpbis-message-signatures" title="HTTP Message Signatures">draft-ietf-httpbis-message-signatures</a> </td> </tr> <tr> <td></td> <th scope="row"> RFC stream </th> <td class="edit"> </td> <td class="text-body-secondary"> (None) </td> </tr> <tr> <td></td> <th scope="row"> Intended RFC status </th> <td class="edit"> </td> <td> <span class="text-body-secondary"> (None) </span> </td> </tr> <tr> <td></td> <th scope="row"> Other formats </th> <td class="edit"> </td> <td> <div class="buttonlist"> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.ietf.org/archive/id/draft-cavage-http-signatures-12.txt"> <i class="bi bi-file-text"></i> txt </a> <a class="btn btn-primary btn-sm" target="_blank" href="https://www.ietf.org/archive/id/draft-cavage-http-signatures-12.xml"> <i class="bi bi-file-code"></i> xml </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/draft-cavage-http-signatures/12/bibtex/"> <i class="bi bi-file-ruled"></i> bibtex </a> <a class="btn btn-primary btn-sm" target="_blank" href="/doc/bibxml3/draft-cavage-http-signatures-12.xml"> <i class="bi bi-file-code"></i> bibxml </a> </div> </td> </tr> </tbody> </table> <a class="btn btn-sm btn-warning mb-3" target="_blank" href="https://github.com/ietf-tools/datatracker/issues/new/choose"> Report a datatracker bug <i class="bi bi-bug"></i> </a> </div> <div class="tab-pane mb-5" id="toc-tab-pane" role="tabpanel" aria-labelledby="toc-tab" tabindex="0"> <nav class="nav nav-pills flex-column small" id="toc-nav"> </nav> </div> <div class="tab-pane mb-5 small" id="pref-tab-pane" role="tabpanel" aria-labelledby="pref-tab" tabindex="0"> <label class="form-label fw-bold mb-2">Show sidebar by default</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="sidebar" id="on-radio"> <label class="btn btn-outline-primary" for="on-radio">Yes</label> <input type="radio" class="btn-check" name="sidebar" id="off-radio"> <label class="btn btn-outline-primary" for="off-radio">No</label> </div> <label class="form-label fw-bold mt-4 mb-2">Tab to show by default</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="deftab" id="docinfo-radio"> <label class="btn btn-outline-primary" for="docinfo-radio"> <i class="bi bi-info-circle me-1"></i>Info </label> <input type="radio" class="btn-check" name="deftab" id="toc-radio"> <label class="btn btn-outline-primary" for="toc-radio"> <i class="bi bi-list-ol me-1"></i>Contents </label> </div> <label class="form-label fw-bold mt-4 mb-2">HTMLization configuration</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="htmlconf" id="txt-radio"> <label class="btn btn-outline-primary" for="txt-radio" title="This is the traditional HTMLization method."> <i class="bi bi-badge-sd me-1"></i>HTMLize the plaintext </label> <input type="radio" class="btn-check" name="htmlconf" id="html-radio"> <label class="btn btn-outline-primary" for="html-radio" title="This is the modern HTMLization method."> <i class="bi bi-badge-hd me-1"></i>Plaintextify the HTML </label> </div> <label class="form-label fw-bold mt-4 mb-2" for="ptsize">Maximum font size</label> <input type="range" class="form-range" min="7" max="16" id="ptsize" oninput="ptdemo.value = ptsize.value"> <label class="form-label fw-bold mt-4 mb-2">Page dependencies</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="pagedeps" id="inline-radio"> <label class="btn btn-outline-primary" for="inline-radio" title="Generate larger, standalone web pages that do not require network access to render."> <i class="bi bi-box me-1"></i>Inline </label> <input type="radio" class="btn-check" name="pagedeps" id="reference-radio"> <label class="btn btn-outline-primary" for="reference-radio" title="Generate regular web pages that require network access to render."> <i class="bi bi-link-45deg me-1"></i>Reference </label> </div> <label class="form-label fw-bold mt-4 mb-2">Citation links</label> <div class="btn-group-vertical btn-group-sm d-flex" role="group"> <input type="radio" class="btn-check" name="reflinks" id="refsection-radio"> <label class="btn btn-outline-primary" for="refsection-radio" title="Citation links go to the reference section."> <i class="bi bi-arrow-clockwise"></i> Go to reference section </label> <input type="radio" class="btn-check" name="reflinks" id="citation-radio"> <label class="btn btn-outline-primary" for="citation-radio" title="Citation links go directly to the cited document."> <i class="bi bi-link-45deg me-1"></i>Go to linked document </label> </div> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> var _paq = window._paq || []; _paq.push(['disableCookies']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//analytics.ietf.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', 7]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <noscript><p><img src="//analytics.ietf.org/piwik.php?idsite=7" style="border:0;" alt="" /></p></noscript> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'8ebe5b0f3aa0cdf5',t:'MTczMzE3NDM3Mi4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10