installEccTerminalCert

suspend fun installEccTerminalCert(certData: ByteArray)

Installs a signed ECC terminal certificate (terminal-ecc-cert.json) onto the selected device. The device restarts automatically on success.

TEST devices only. This exists to complete ECC provisioning for TEST devices, whose CSRs cannot be signed by the TMS (see ensureDeviceReady). PROD devices are provisioned end-to-end by ensureDeviceReady and never need this called directly.

Parameters

certData

The raw bytes of the signed terminal-ecc-cert.json.

Throws

if installation fails.


@JvmName(name = "installEccTerminalCert")
fun installEccTerminalCert(certData: ByteArray, cb: ToroCallback<Unit>)

Java-friendly version of installEccTerminalCert. The device restarts automatically on success. See installEccTerminalCert for full behaviour (TEST devices only).

Parameters

certData

The raw bytes of the signed terminal-ecc-cert.json.

cb

Callback invoked on the main thread on completion or error.