Skip to main content

POST /certificateSigningRequest

Use this method to generate a Certificate Signing Request (CSR).

Authentication

Authentication with username and password is required.

Request URL

POST https://{management_server_IP}/certificateSigningRequest

Query parameters

None

Request body

AttributesRequired / OptionalTypeDescription
CommonNameOptionalStringName of the certificate owner. Typically, this is the fully-qualified domain name (FQDN) or IP address of the server that is using the certificate (for example, www.domainname.com or 10.15.23.99)

The length of this value cannot exceed 63 characters.

The default is LXCA.

CountryOptionalStringTwo-letter ISO 3166 code for the country or region of origin associated with the certificate organization (for example, US for the United States)

The default is US.

OrganizationOptionalStringOrganization (company) that is to own the certificate. Typically, this is the legal incorporate name of a company. It should include any suffixes, such as Ltd., Inc., or Corp (for example, ACME International Ltd.)

The length of this value cannot exceed 60 characters.

The default is generated by the server firmware.

OrganizationUnitOptionalStringOrganizational unit that will own the certificate (for example, ABC Division)

The length of this value cannot exceed 60 characters.

The default is None.

StateLocalityOptionalStringFull name of the locality (city) to be associated with the certificate (for example, San Jose)

The length of the value cannot exceed 50 characters.

The default is Raleigh.

StateProvinceOptionalStringFull name of the state or province to be associated with the certificate (for example, California or New Brunswick)

The length of this value cannot exceed 60 characters.

The default is North Carolina.

subjectAlternativeNamesOptionalObjectInformation about the Subject Alternative Names (SANs) to be included in Certificate Signing Requests
 generalNamesRequiredArray of objectsList of Subject Alternative Names to be included in Certificate Signing Requests
  nameRequiredStringSubject Alternative Name
  typeRequiredStringRFC 5280 GeneralName type of this Subject Alternative Name
The following example generates a CSR.
{
"CommonName": "LXCA"
"Country": "US",
"Organization": "ACME International Ltd.",
"OrganizationUnit": "ABC Division",
"StateLocality": "Raleigh",
"StateProvince": "North Carolina",
"subjectAlternativeNames": {
"generalNames": [{
"type": "dNSName",
"name": "New-LXCA"
},
{
"type": "iPAddress",
"name": "192.0.2.0"
}]
}
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
404Not foundA specified resource cannot be found. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

AttributesTypeDescription
responseArray 
 pathStringIdentifier that can used to reference the generated CSR on subsequent GET and DELETE requests
resultStringResults of the request . This can be one of the following values:
  • success. The request completed successfully.
  • failure. The request failed. A descriptive error message was returned.
messagesArrayInformation about one or more messages
 explanationStringAdditional information to clarify the reason for the message
 idStringMessage identifier of a returned message
 recoveryArrayRecovery information
  textStringUser actions that can be taken to recover from the event
  URLStringLink to the help system for more information, if available
 textStringMessage text associated with the message identifier
The following example is returned if the request is successful.
{
"response": {
"path": "1"
},
"result": "success",
"messages": [{
"explanation": "",
"id": "FQXHMSE0001I",
"recovery": {
"text": "Information only; no action is required.",
"URL": ""
},
"text": "The request completed successfully."
}]
}