A JWS in its flattened JSON form, signed by the account (or, opening one, by its new key).
Finalize a ready order with a signing request naming exactly its identifiers.
POST /organizations/{organizationId}/authorities/{authorityId}/acme/orders/{orderId}/finalize
POST https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/orders/{orderId}/finalize
| ID de operación |
organizations.organizationId.authorities.authorityId.acme.orders.orderId.finalize.post
|
|---|---|
| Acceso | Cualquiera |
Parámetros
| Nombre | En | Tipo | Descripción | |
|---|---|---|---|---|
organizationId
| Ruta | Obligatorio | string (snowflake) | The organization. |
authorityId
| Ruta | Obligatorio | string (snowflake) | The authority. |
orderId
| Ruta | Obligatorio | string (snowflake) | The order. |
Cuerpo de la solicitud
Obligatorio, enviado como application/jose+json.
Esquema: AcmeJwsBody
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
protected
| string | Obligatorio | The JWS protected header, base64url-encoded JSON: its alg (ES256, RS256 or EdDSA), nonce and url, and either the account key as jwk, for a new account, or the account's URL as kid. |
payload
| string | Obligatorio | The request's payload, base64url-encoded JSON; empty for a POST-as-GET. |
signature
| string | Obligatorio | The signature over the protected header and the payload, base64url-encoded, made with the account's key. |
Respuestas
| Estado | Descripción | Esquema | Tipo de contenido |
|---|---|---|---|
| 200 | The order. | AcmeOrderObject | application/json |
| 400 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 403 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 404 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| 422 | The input was rejected; errors names each failure. | ValidationProblem | application/json |
| 503 | An ACME error: its type is an urn:ietf:params:acme:error URN. | Problem | application/json |
| Cualquier otro estado | The request was refused. The problem's type names why, and its detail explains it for people to read. | Problem | application/json |
200 The order.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
status
| string | Obligatorio | The order's status: ready, as every order starts, since its binding's names were authorized ahead; processing while a public authority's provider signs it; valid once its certificate is issued; or invalid when it failed. |
expires
| string | Obligatorio | When the order expires, a week after it was placed, as an RFC 3339 time in UTC. |
identifiers
| list of AcmeIdentifier | Obligatorio | The DNS names and IP addresses the certificate is for. |
authorizations
| list of string | Obligatorio | The URL of each identifier's authorization, in the same order as identifiers; each one is valid already. |
finalize
| string | Obligatorio | The URL a ready order is finalized at, with a signing request naming exactly its identifiers. |
certificate
| string | Opcional | The URL its certificate downloads from; absent until the certificate is issued. |
error
| Problem | Opcional | Why the order failed, as an ACME error; absent when nothing failed. |
400 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
403 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
404 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
422 The input was rejected; errors names each failure.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
errors
| InputErrors | Obligatorio | What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body. |
503 An ACME error: its type is an urn:ietf:params:acme:error URN.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
Cualquier otro estado: The request was refused. The problem's type names why, and its detail explains it for people to read.
| Propiedad | Tipo | Descripción | |
|---|---|---|---|
type
| string | Obligatorio | A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check. |
title
| string | Obligatorio | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Obligatorio | The HTTP status code of the response. |
detail
| string | Obligatorio | An explanation of what went wrong, written for people to read. |
instance
| string | Obligatorio | The path the request was sent to. |
Ejemplo
curl -X POST 'https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/orders/{orderId}/finalize' \
-H 'Content-Type: application/jose+json' \
-d '{
"protected": "<string>",
"payload": "<string>",
"signature": "<string>"
}'