Certificates
Issue, bulk issue, look up, download chains, renew and revoke. See Conventions for request formats and shared rules.
Issue a certificate
POST/v1/certificates
Issues a certificate for a registered device from its CSR. Vendors on automatic issuance get 201 with the certificate and chain. Vendors on manual issuance get 202 with a pending request; poll GET /v1/requests/{id}. One valid certificate per device: use renew to replace it.
Parameters
Idempotency-KeystringheaderResending with the same key returns the first response (24 h). Use it for retries.
Request body
deviceSerialstringrequiredSerial of a registered device.
csrPemstringrequiredPKCS#10 CSR in PEM (ECDSA P-256). The private key stays on the device. CN and SAN in the CSR are ignored; they come from the device registry.
≤ 20000
profileIdstring (uuid)Profile ID from GET /v1/profiles. Defaults to the profile for the device type.
Response 201
31 fields
requestobjectrequest.idstring (uuid)request.kindstringissue·renewrequest.statusstringpending: waiting for Solarize approval (manual issue mode).
pending·approved·rejectedrequest.deviceSerialstringrequest.profileIdstring (uuid)request.commonNamestringrequest.rejectReasonstring | nullrequest.certificateSerialstring | nullrequest.replacesstring | nullFor renewals: the certificate that is revoked (superseded) once the new one is issued.
request.batchIdstring (uuid) | nullrequest.createdAtstringISO 8601 time in UTC.
request.decidedAtstring | nullISO 8601 time in UTC.
certificateobject | nullSet when issued (201). null while pending (202).
certificate.serialstringCertificate serial (hex, lower case).
certificate.deviceSerialstring | nullcertificate.deviceTypestringrtu·ppc·modulecertificate.profileIdstring (uuid)certificate.commonNamestringcertificate.chipIdstring | nullcertificate.issuerobjectcertificate.issuer.caIdstring (uuid)certificate.issuer.namestringcertificate.statusstringvalid·revokedcertificate.revokeReasonstring | nullcertificate.revokedAtstring | nullISO 8601 time in UTC.
certificate.notBeforestringISO 8601 time in UTC.
certificate.notAfterstringISO 8601 time in UTC.
certificate.issuedAtstringISO 8601 time in UTC.
certificate.certificatePemstringOnly in single-certificate responses.
chainPemstring | nullDevice certificate + issuing CA (PEM). Install with the root you already trust.
Errors
VALIDATIONINVALID_CSRPROFILE_NOT_ALLOWEDRTU_ID_REQUIREDCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDDEVICE_TYPE_NOT_APPROVEDVENDOR_SUSPENDEDVENDOR_INACTIVEINSUFFICIENT_SCOPEDEVICE_NOT_FOUNDDEVICE_INACTIVECERTIFICATE_EXISTSREQUEST_PENDINGDUPLICATE_CHIPRTU_ID_IN_USERATE_LIMITEDNOT_CONFIGURED
curl -X POST "$PKI_API/v1/certificates" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "deviceSerial": "SN-0001", "csrPem": "-----BEGIN CERTIFICATE REQUEST-----\nMIHL…\n-----END CERTIFICATE REQUEST-----\n", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84" }'{ "request": { "id": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "kind": "issue", "status": "pending", "deviceSerial": "SN-0001", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "rejectReason": null, "certificateSerial": "5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31", "replaces": null, "batchId": null, "createdAt": "2026-12-01T09:00:00.000Z", "decidedAt": "2026-12-01T09:00:01.000Z" }, "certificate": { "serial": "SN-0001", "deviceSerial": "SN-0001", "deviceType": "module", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "chipId": "0123A1B2C3D4E5F6EE", "issuer": { "caId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "name": "Solarize Issuing CA" }, "status": "valid", "revokeReason": null, "revokedAt": null, "notBefore": "2026-12-01T09:00:00.000Z", "notAfter": "2026-12-01T09:00:00.000Z", "issuedAt": "2026-12-01T09:00:00.000Z", "certificatePem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n" }, "chainPem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n"}Issue certificates in bulk
POST/v1/certificates/batch
Queues up to 1000 issuance requests and returns 202 with a batch ID right away. Each item is checked like a single issue; one failing item does not stop the others. Poll GET /v1/batches/{id}, then download chains with GET /v1/certificates/{serial}/chain.
Parameters
Idempotency-KeystringheaderResending with the same key returns the first response (24 h). Use it for retries.
Request body
itemsobject[]requiredUp to 1000 issuance requests.
≤ 1000 items
items[].deviceSerialstringrequiredSerial of a registered device.
items[].csrPemstringrequiredPKCS#10 CSR in PEM (ECDSA P-256). The private key stays on the device. CN and SAN in the CSR are ignored; they come from the device registry.
≤ 20000
items[].profileIdstring (uuid)Profile ID from GET /v1/profiles. Defaults to the profile for the device type.
Response 202
17 fields
idstring (uuid)statusstringqueued·running·completedtotalinteger-9007199254740991–9007199254740991
issuedinteger-9007199254740991–9007199254740991
pendinginteger-9007199254740991–9007199254740991
failedinteger-9007199254740991–9007199254740991
createdAtstringISO 8601 time in UTC.
completedAtstring | nullISO 8601 time in UTC.
itemsobject[]items[].indexinteger-9007199254740991–9007199254740991
items[].deviceSerialstringitems[].statusstringqueued·issued·pending·faileditems[].requestIdstring (uuid) | nullitems[].certificateSerialstring | nullitems[].errorobject | nullitems[].error.codestringitems[].error.messagestring
Errors
VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_SUSPENDEDVENDOR_INACTIVEINSUFFICIENT_SCOPERATE_LIMITED
curl -X POST "$PKI_API/v1/certificates/batch" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "deviceSerial": "SN-0001", "csrPem": "-----BEGIN CERTIFICATE REQUEST-----\nMIHL…\n-----END CERTIFICATE REQUEST-----\n", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84" } ] }'{ "id": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "status": "queued", "total": -9007199254740991, "issued": -9007199254740991, "pending": -9007199254740991, "failed": -9007199254740991, "createdAt": "2026-12-01T09:00:00.000Z", "completedAt": "2026-12-01T09:00:12.000Z", "items": [ { "index": -9007199254740991, "deviceSerial": "SN-0001", "status": "queued", "requestId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "certificateSerial": "5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31", "error": { "code": "DEVICE_NOT_FOUND", "message": "No device with this serial in your registry." } } ]}Get a batch
GET/v1/batches/{id}
Progress and per-item result of a bulk issue.
Parameters
idstring (uuid)pathrequired
Response 200
17 fields
idstring (uuid)statusstringqueued·running·completedtotalinteger-9007199254740991–9007199254740991
issuedinteger-9007199254740991–9007199254740991
pendinginteger-9007199254740991–9007199254740991
failedinteger-9007199254740991–9007199254740991
createdAtstringISO 8601 time in UTC.
completedAtstring | nullISO 8601 time in UTC.
itemsobject[]items[].indexinteger-9007199254740991–9007199254740991
items[].deviceSerialstringitems[].statusstringqueued·issued·pending·faileditems[].requestIdstring (uuid) | nullitems[].certificateSerialstring | nullitems[].errorobject | nullitems[].error.codestringitems[].error.messagestring
Errors
CLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPEBATCH_NOT_FOUNDRATE_LIMITED
curl "$PKI_API/v1/batches/7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"{ "id": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "status": "queued", "total": -9007199254740991, "issued": -9007199254740991, "pending": -9007199254740991, "failed": -9007199254740991, "createdAt": "2026-12-01T09:00:00.000Z", "completedAt": "2026-12-01T09:00:12.000Z", "items": [ { "index": -9007199254740991, "deviceSerial": "SN-0001", "status": "queued", "requestId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "certificateSerial": "5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31", "error": { "code": "DEVICE_NOT_FOUND", "message": "No device with this serial in your registry." } } ]}List certificates
GET/v1/certificates
Certificates issued to your devices, newest first.
Parameters
statusstringquerydeviceSerialstringqueryDevice serial number. Letters, digits and . - _ (max 64). Becomes the certificate CN unless the profile uses rtuId.
limitintegerqueryPage size.
cursorstringquerynextCursor from the previous page.
Response 200
18 fields
dataobject[]data[].serialstringCertificate serial (hex, lower case).
data[].deviceSerialstring | nulldata[].deviceTypestringrtu·ppc·moduledata[].profileIdstring (uuid)data[].commonNamestringdata[].chipIdstring | nulldata[].issuerobjectdata[].issuer.caIdstring (uuid)data[].issuer.namestringdata[].statusstringvalid·revokeddata[].revokeReasonstring | nulldata[].revokedAtstring | nullISO 8601 time in UTC.
data[].notBeforestringISO 8601 time in UTC.
data[].notAfterstringISO 8601 time in UTC.
data[].issuedAtstringISO 8601 time in UTC.
data[].certificatePemstringOnly in single-certificate responses.
nextCursorstring | nullPass as cursor for the next page. null on the last page.
Errors
VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPERATE_LIMITED
curl "$PKI_API/v1/certificates" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"{ "data": [ { "serial": "SN-0001", "deviceSerial": "SN-0001", "deviceType": "module", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "chipId": "0123A1B2C3D4E5F6EE", "issuer": { "caId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "name": "Solarize Issuing CA" }, "status": "valid", "revokeReason": null, "revokedAt": null, "notBefore": "2026-12-01T09:00:00.000Z", "notAfter": "2026-12-01T09:00:00.000Z", "issuedAt": "2026-12-01T09:00:00.000Z", "certificatePem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n" } ], "nextCursor": null}Get a certificate
GET/v1/certificates/{serial}
One certificate with its PEM.
Parameters
serialstringpathrequiredSerial.
Response 200
16 fields
serialstringCertificate serial (hex, lower case).
deviceSerialstring | nulldeviceTypestringrtu·ppc·moduleprofileIdstring (uuid)commonNamestringchipIdstring | nullissuerobjectissuer.caIdstring (uuid)issuer.namestringstatusstringvalid·revokedrevokeReasonstring | nullrevokedAtstring | nullISO 8601 time in UTC.
notBeforestringISO 8601 time in UTC.
notAfterstringISO 8601 time in UTC.
issuedAtstringISO 8601 time in UTC.
certificatePemstringOnly in single-certificate responses.
Errors
CLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPECERTIFICATE_NOT_FOUNDRATE_LIMITED
curl "$PKI_API/v1/certificates/5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"{ "serial": "SN-0001", "deviceSerial": "SN-0001", "deviceType": "module", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "chipId": "0123A1B2C3D4E5F6EE", "issuer": { "caId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "name": "Solarize Issuing CA" }, "status": "valid", "revokeReason": null, "revokedAt": null, "notBefore": "2026-12-01T09:00:00.000Z", "notAfter": "2026-12-01T09:00:00.000Z", "issuedAt": "2026-12-01T09:00:00.000Z", "certificatePem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n"}Download the chain
GET/v1/certificates/{serial}/chain
Device certificate followed by the issuing CA, as application/pem-certificate-chain (RFC 8555). The root is not included: devices already hold it as the trust anchor.
Parameters
serialstringpathrequiredSerial.
Response 200
PEM text (application/pem-certificate-chain)
Errors
CLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPECERTIFICATE_NOT_FOUNDRATE_LIMITED
curl "$PKI_API/v1/certificates/5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31/chain" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY"-----BEGIN CERTIFICATE-----MIIB…-----END CERTIFICATE----------BEGIN CERTIFICATE-----MIIB…-----END CERTIFICATE-----Renew a certificate
POST/v1/certificates/{serial}/renew
Issues a new certificate for the same device from a new CSR. The old certificate is revoked as superseded once the new one is issued (after approval on manual issuance).
Parameters
serialstringpathrequiredSerial.
Idempotency-KeystringheaderResending with the same key returns the first response (24 h). Use it for retries.
Request body
csrPemstringrequiredPKCS#10 CSR in PEM (ECDSA P-256). The private key stays on the device. CN and SAN in the CSR are ignored; they come from the device registry.
≤ 20000
Response 201
31 fields
requestobjectrequest.idstring (uuid)request.kindstringissue·renewrequest.statusstringpending: waiting for Solarize approval (manual issue mode).
pending·approved·rejectedrequest.deviceSerialstringrequest.profileIdstring (uuid)request.commonNamestringrequest.rejectReasonstring | nullrequest.certificateSerialstring | nullrequest.replacesstring | nullFor renewals: the certificate that is revoked (superseded) once the new one is issued.
request.batchIdstring (uuid) | nullrequest.createdAtstringISO 8601 time in UTC.
request.decidedAtstring | nullISO 8601 time in UTC.
certificateobject | nullSet when issued (201). null while pending (202).
certificate.serialstringCertificate serial (hex, lower case).
certificate.deviceSerialstring | nullcertificate.deviceTypestringrtu·ppc·modulecertificate.profileIdstring (uuid)certificate.commonNamestringcertificate.chipIdstring | nullcertificate.issuerobjectcertificate.issuer.caIdstring (uuid)certificate.issuer.namestringcertificate.statusstringvalid·revokedcertificate.revokeReasonstring | nullcertificate.revokedAtstring | nullISO 8601 time in UTC.
certificate.notBeforestringISO 8601 time in UTC.
certificate.notAfterstringISO 8601 time in UTC.
certificate.issuedAtstringISO 8601 time in UTC.
certificate.certificatePemstringOnly in single-certificate responses.
chainPemstring | nullDevice certificate + issuing CA (PEM). Install with the root you already trust.
Errors
VALIDATIONINVALID_CSRCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_SUSPENDEDVENDOR_INACTIVEINSUFFICIENT_SCOPECERTIFICATE_NOT_FOUNDCERTIFICATE_REVOKEDDEVICE_INACTIVEREQUEST_PENDINGRATE_LIMITED
curl -X POST "$PKI_API/v1/certificates/5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31/renew" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "csrPem": "-----BEGIN CERTIFICATE REQUEST-----\nMIHL…\n-----END CERTIFICATE REQUEST-----\n" }'{ "request": { "id": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "kind": "issue", "status": "pending", "deviceSerial": "SN-0001", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "rejectReason": null, "certificateSerial": "5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31", "replaces": null, "batchId": null, "createdAt": "2026-12-01T09:00:00.000Z", "decidedAt": "2026-12-01T09:00:01.000Z" }, "certificate": { "serial": "SN-0001", "deviceSerial": "SN-0001", "deviceType": "module", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "chipId": "0123A1B2C3D4E5F6EE", "issuer": { "caId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "name": "Solarize Issuing CA" }, "status": "valid", "revokeReason": null, "revokedAt": null, "notBefore": "2026-12-01T09:00:00.000Z", "notAfter": "2026-12-01T09:00:00.000Z", "issuedAt": "2026-12-01T09:00:00.000Z", "certificatePem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n" }, "chainPem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n"}Revoke a certificate
POST/v1/certificates/{serial}/revoke
Revokes right away and publishes a new CRL and trust bundle. Receivers stop trusting the certificate within a minute. Works while suspended.
Parameters
serialstringpathrequiredSerial.
Idempotency-KeystringheaderResending with the same key returns the first response (24 h). Use it for retries.
Request body
reasonstringrequiredRFC 5280 reason. keyCompromise if the private key may have leaked.
unspecified·keyCompromise·affiliationChanged·superseded·cessationOfOperation
Response 200
16 fields
serialstringCertificate serial (hex, lower case).
deviceSerialstring | nulldeviceTypestringrtu·ppc·moduleprofileIdstring (uuid)commonNamestringchipIdstring | nullissuerobjectissuer.caIdstring (uuid)issuer.namestringstatusstringvalid·revokedrevokeReasonstring | nullrevokedAtstring | nullISO 8601 time in UTC.
notBeforestringISO 8601 time in UTC.
notAfterstringISO 8601 time in UTC.
issuedAtstringISO 8601 time in UTC.
certificatePemstringOnly in single-certificate responses.
Errors
VALIDATIONCLIENT_CERT_REQUIREDAPI_KEY_REQUIREDINVALID_API_KEYAPI_KEY_REVOKEDAPI_KEY_EXPIREDCLIENT_CERT_MISMATCHCLIENT_CERT_REVOKEDVENDOR_INACTIVEINSUFFICIENT_SCOPECERTIFICATE_NOT_FOUNDCERTIFICATE_REVOKEDRATE_LIMITED
curl -X POST "$PKI_API/v1/certificates/5f0c1e9a7b3d4c2e8a6b1d0f9e7c5a31/revoke" \ --cert client.crt --key client.key \ -H "Authorization: Bearer $PKI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "reason": "keyCompromise" }'{ "serial": "SN-0001", "deviceSerial": "SN-0001", "deviceType": "module", "profileId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "commonName": "SN-0001", "chipId": "0123A1B2C3D4E5F6EE", "issuer": { "caId": "7d1f0c2a-4b5e-4c8d-9a3f-2e6b1c0d9f84", "name": "Solarize Issuing CA" }, "status": "valid", "revokeReason": null, "revokedAt": null, "notBefore": "2026-12-01T09:00:00.000Z", "notAfter": "2026-12-01T09:00:00.000Z", "issuedAt": "2026-12-01T09:00:00.000Z", "certificatePem": "-----BEGIN CERTIFICATE-----\nMIIB…\n-----END CERTIFICATE-----\n"}