post
https://example.com/device/v2/devices//certificate/csr
Create new Certificate for Device from a certificate signing request
type - BOOTSTRAP or PRODUCTION - default PRODUCTION - The device generates the key pair and keeps the private key, so the response holds only the signed certificate
Request Body Parameters:
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| csr | string | true | PEM encoded PKCS#10 certificate signing request, generated by the device from a key pair it keeps. Send the whole block, from the BEGIN CERTIFICATE REQUEST line to the END CERTIFICATE REQUEST line, with the line breaks escaped as \n | -----BEGIN CERTIFICATE REQUEST-----\nMIICvDCCAaQCAQAwdzEL...\n-----END CERTIFICATE REQUEST----- |
| Path Parameters: |
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| id | string | true | Device id | device1 |
| Query Parameters: |
| Parameter | Type | Mandatory | Description | Example |
|---|---|---|---|---|
| type | string | false | Supported values are: BOOTSTRAP, PRODUCTION, default value: PRODUCTION. BOOTSTRAP - temporary certificate for factory tests only. PRODUCTION - certificate for production devices |
This API requires PROTECTED_API permission(s).
