keys

generate csr for the selected key

<h3>Administrator generates csr for the key.</h3>
post/keys/{id}/csrs

Request

  • Base URL: /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/keys/{id}/csrs
  • Auth: API key in header Authorization

Path parameters

idstring text required

id of the key

Request body

key_usage_type'AUTHENTICATION' | 'SIGNING' enum required

intended usage for the key (signing or authentication)

ca_namestring text required

common name of the CA

csr_format'PEM' | 'DER' enum required

format of the certificate signing request (PEM or DER)

member_idstring text

member client id for signing CSRs. <instance_id>:<member_class>:<member_code>

subject_field_valuesobject required

user-provided values for subject DN parameters

acme_orderboolean

whether or not order certificate from acme server with the generated csr

Example request

{
  "key_usage_type": "AUTHENTICATION",
  "ca_name": "X-Road Test CA CN",
  "csr_format": "PEM",
  "member_id": "FI:GOV:123"
}

Response

created CSR

Changes

No recorded changes to this operation across all 50 revisions of this API.