File formats
| Item | Requirement |
|---|---|
| Format | PKCS#10, PEM (-----BEGIN CERTIFICATE REQUEST-----) |
| Public key | ECDSA P-256 (prime256v1) |
| Signature | The CSR’s own signature must verify (ECDSA SHA-256 recommended) |
| Subject (CN), SAN | Ignored. The certificate CN and chip ID come from the device registry |
| Size | 100–20,000 characters |
In a JSON body, line breaks become \n. jq --rawfile or any JSON library does that for you.
Shipping list
Section titled “Shipping list”The devices array of POST /v1/devices, up to 1,000 devices per call.
| Field | Required | Rule |
|---|---|---|
serial |
Yes | Letters, digits, . - _, up to 64. Unique within your vendor |
deviceType |
Yes | One of rtu · ppc · module that your vendor is approved for |
chipId |
No | Hex, 2–64 characters. Unique across all devices |
rtuId |
Yes for RTU profiles | 1–10 digits. Unique across all vendors |
model |
No | Up to 60 characters |
note |
No | Up to 200 characters |
If you keep the list as CSV, convert it like this:
# devices.csv: serial,deviceType,chipIdjq -R -s 'split("\n") | map(select(length > 0) | split(",")) | .[1:] | {devices: map({serial: .[0], deviceType: .[1]} + (if .[2] != "" then {chipId: .[2]} else {} end))}' \ devices.csv | pki -X POST "$PKI_API/v1/devices" -d @-Certificate chain
Section titled “Certificate chain”The chainPem field and the response of GET /v1/certificates/{serial}/chain.
- Two PEM certificates: the device certificate, then the issuing CA
- No root (devices and servers hold it as the trust anchor)
\nline breaks, one trailing line break
If the device needs DER, convert one certificate at a time:
openssl x509 -in device-chain.pem -outform DER -out device.der