Skip to content

ACME Create Account REST API

Endi S. Dewata edited this page Jan 4, 2022 · 2 revisions

Overview

This operation creates a new ACME account as defined in:

Request

POST /acme/new-account HTTP/1.1
Host: example.com
Content-Type: application/jose+json

{
    "protected": base64url({
        "alg": "ES256",
        "jwk": {...},
        "nonce": "6S8IqOGY7eL2lsGoTZYifg",
        "url": "https://example.com/acme/new-account"
    }),
    "payload": base64url({
        "termsOfServiceAgreed": true,
        "contact": [
            "mailto:[email protected]",
            "mailto:[email protected]"
        ]
    }),
    "signature": "RZPOnYoPs1PhjszF...-nh6X1qtOFPB519I"
}

Response

HTTP/1.1 201 Created
Content-Type: application/json
Replay-Nonce: D8s4D2mLs8Vn-goWuPQeKA
Link: <https://example.com/acme/directory>;rel="index"
Location: https://example.com/acme/acct/evOfKhNU60wg

{
    "status": "valid",

    "contact": [
        "mailto:[email protected]",
        "mailto:[email protected]"
    ],

    "orders": "https://example.com/acme/acct/evOfKhNU60wg/orders"
}
Clone this wiki locally