Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct Headers Key Name is X-RESUME-TOKEN #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/signature-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ Unfortunately, there's no way to retrieve the whole certificate list with a sing
To retrieve a certificate, a GET request is made to `/signercertificate/update` with a custom header
```
headers: {
X_RESUME_TOKEN: [Integer]
X-RESUME-TOKEN: [Integer]
}
```

The `X_RESUME_TOKEN` header is used by the server to determine which certificate will be delivered to the app. For the first certificate, `X_RESUME_TOKEN` is set to `-1`.
The `X-RESUME-TOKEN` header is used by the server to determine which certificate will be delivered to the app. For the first certificate, `X-RESUME-TOKEN` is set to `-1`.

The response comes with custom headers as well:
* `X_KID` : the key identifier of the returned certificate.
* `X_RESUME_TOKEN` : the resume token required to retrieve the next certificate in the list.
* `X-KID` : the key identifier of the returned certificate.
* `X-RESUME-TOKEN` : the resume token required to retrieve the next certificate in the list.

The response body is of `type/text` and contains the certificate's body in PEM format, without beginning and ending tokens.

Expand Down