A JWS in its flattened JSON form, signed by the account (or, opening one, by its new key).
Open an ACME account with an External Account Binding made on a machine of the organization.
POST /organizations/{organizationId}/authorities/{authorityId}/acme/new_account
POST https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/new_account
| オペレーション ID |
organizations.organizationId.authorities.authorityId.acme.new_account.post
|
|---|---|
| アクセス | 全員 |
パラメータ
| 名前 | 場所 | 型 | 説明 | |
|---|---|---|---|---|
organizationId
| パス | 必須 | string (snowflake) | The organization. |
authorityId
| パス | 必須 | string (snowflake) | The authority. |
リクエストボディ
必須(application/jose+json として送信)。
スキーマ: AcmeJwsBody
| プロパティ | 型 | 説明 | |
|---|---|---|---|
protected
| string | 必須 | 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 | 必須 | The request's payload, base64url-encoded JSON; empty for a POST-as-GET. |
signature
| string | 必須 | The signature over the protected header and the payload, base64url-encoded, made with the account's key. |
レスポンス
| ステータス | 説明 | スキーマ | コンテンツタイプ |
|---|---|---|---|
| 200 | The account this key opened already. | AcmeAccountObject | application/json |
| 201 | Account opened. | AcmeAccountObject | 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 |
| その他のステータス | The request was refused. The problem's type names why, and its detail explains it for people to read. | Problem | application/json |
200 The account this key opened already.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
status
| string | 必須 | The account's status: valid, or deactivated, which orders nothing more. |
contact
| list of string | 必須 | The account's contact URLs, each a mailto: URL, at most 10; empty for none. |
orders
| string | 必須 | The URL of the list of the account's orders still open. |
201 Account opened.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
status
| string | 必須 | The account's status: valid, or deactivated, which orders nothing more. |
contact
| list of string | 必須 | The account's contact URLs, each a mailto: URL, at most 10; empty for none. |
orders
| string | 必須 | The URL of the list of the account's orders still open. |
400 An ACME error: its type is an urn:ietf:params:acme:error URN.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
403 An ACME error: its type is an urn:ietf:params:acme:error URN.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
404 An ACME error: its type is an urn:ietf:params:acme:error URN.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
422 The input was rejected; errors names each failure.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
errors
| InputErrors | 必須 | 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.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.
| プロパティ | 型 | 説明 | |
|---|---|---|---|
type
| string | 必須 | 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 | 必須 | The HTTP status as text, such as Not Found. |
status
| integer (int32) | 必須 | The HTTP status code of the response. |
detail
| string | 必須 | An explanation of what went wrong, written for people to read. |
instance
| string | 必須 | The path the request was sent to. |
例
curl -X POST 'https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}/acme/new_account' \
-H 'Content-Type: application/jose+json' \
-d '{
"protected": "<string>",
"payload": "<string>",
"signature": "<string>"
}'