Skip to content

Create an Operational Certificate

The following request creates an operational certificate for the device.

###API Request

POST {base URL}/bootstrap

####Request Body application/json

Parameter Data Type Description
csr* string CSR value (new line should be explicitly formatted using \n).

####Fields required in CSR

Parameter Data Type Description
common_name* string serialNumber of device

Refer to the open ssl commands section below for generating csr.

####Response

Status Code 201: When a device certificate creation is successfully done.

Response Model application/json

Parameter Data Type Description
certificate* string Operational certificate for the device.
trn* string trn of the device.

Status Code 400: When an invalid request for creation is sent

Status Code 404: When the device is not found to create a device certificate

For more details, refer to API documentation.

###OPEN SSL COMMANDS TO GENERATE CSR: For generating Private Key

openssl genrsa -out privatekey.pem 2048

For generating csr from Private Key

openssl req -new -key private.key -out request.csr