Skip to main content

CSV format for registering many devices

Batch device registration in DigiCert® Device Trust Manager allows you to register multiple devices and issue bootstrap certificates in a single job using a CSV file. This reference details the required CSV structure to ensure successful batch processing.

The CSV file used for registering many devices must include at least two rows:

  • Header row: Defines the fields for each device, including:

    • device_name

    • device_description

    • Certificate attribute headers

    • csr (if required by the certificate management policy)

  • Data rows: Contain the details for each device registration. Make sure each value in a data row matches the corresponding header to maintain alignment and proper processing.

CSV header details

Device name

Use the device_name column header to specify a name for each device. This name will appear under Device Management > Devices.

Device description

Use the device_description column header to provide a description for each device.

Certificate attributes

Include headers for the required certificate attributes based on your certificate profile configuration, such as:

  • Subject attributes, such as subject.common_name)

  • SAN (Subject Alternative Name) attributes

  • Extensions

  • Key usage and extended key usage attributes

注意

If a certificate attribute is specified in both the CSR and the CSV column, the value in the CSV column takes precedence and will be used in the request.

The following table outlines the header cell values, expected data cell value formats, and descriptions for each certificate attribute used in CSV files for batch certificate enrollment.

CSR

If your certificate management policy requires a CSR for generating the device's x.509 bootstrap certificate, include it in the csr column.

CSRs must be in Base-64 encoded PEM format and include the -----BEGIN CERTIFICATE REQUEST----- and -----END CERTIFICATE REQUEST----- tags. Below is an example of a PEM-formatted CSR:

 -----BEGIN CERTIFICATE REQUEST-----
...CSR content...
-----END CERTIFICATE REQUEST-----

Device registration data rows

Each data row in the CSV represents an individual device registration, containing values for each field specified in the header row.

注意

There is no limit to the number of data rows, but the compressed ZIP file containing your CSV data must not exceed 200 MB.

"device_name","device_description","subject.common_name","csr""device001","device001 description","device001cn","-----BEGIN CERTIFICATE REQUEST-----...""device002","device002 description","device002cn","-----BEGIN CERTIFICATE REQUEST-----...""device003","device003 description","device003cn","-----BEGIN CERTIFICATE REQUEST-----..."

This example demonstrates a CSV with device_name, device_description, subject.common_name, and csr columns.