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

ParameterData TypeDescription
csr*stringCSR value (new line should be explicitly formatted using \n).

####Fields required in CSR

ParameterData TypeDescription
common_name*stringserialNumber 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

ParameterData TypeDescription
certificate*stringOperational certificate for the device.
trn*stringtrn 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