SecBox Information and Firmware
The following endpoints allow checking the presence and status of the SecBox hardware security module, retrieving its serial number, and managing its firmware.
Check if device has SecBox
Returns whether the device includes a SecBox module.
Available only on iDAccess line devices.
GET /device_has_secbox.fcgi
Parameters
- This request has no parameters.
Response
- has_secbox (bool):
trueif the device has a SecBox module.
Request example
$.ajax({
url: "/device_has_secbox.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"has_secbox": true
}
Check if SecBox is active
Returns whether a SecBox module is currently detected and active on the device.
GET /secbox_is_active.fcgi
Parameters
- This request has no parameters.
Response
- isActive (bool):
trueif a SecBox is detected and active.
Request example
$.ajax({
url: "/secbox_is_active.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"isActive": true
}
Get SecBox serial number
Returns the serial number of the connected SecBox module.
GET /secbox_serial_number.fcgi
Parameters
- This request has no parameters.
Response
- serial (string): Serial number of the SecBox. Returns
"0"if no SecBox is connected.
Request example
$.ajax({
url: "/secbox_serial_number.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"serial": "0A1B2C3D4E5F"
}
Get SecBox firmware version
Returns the current firmware version of the SecBox module.
GET /update_secbox_firmware_version.fcgi
Parameters
- This request has no parameters.
Response
- fw_version (int): Current SecBox firmware version number.
Request example
$.ajax({
url: "/update_secbox_firmware_version.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"fw_version": 3
}
Update SecBox firmware
Triggers a firmware update on the SecBox module. This is a synchronous call — it waits for the update process to complete before returning.
POST /update_secbox_firmware.fcgi
Parameters
- This request has no parameters.
Response
- isUpdated (bool):
trueif the firmware update was applied successfully.
Request example
$.ajax({
url: "/update_secbox_firmware.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json'
});
Response example
{
"isUpdated": true
}
Get SecBox firmware update status
Returns the current progress of an ongoing SecBox firmware update.
GET /update_secbox_firmware_status.fcgi
Parameters
- This request has no parameters.
Response
- isFinished (bool):
trueif the firmware update process has completed. - bitsWritten (int): Number of bits written to the SecBox during the update.
Request example
$.ajax({
url: "/update_secbox_firmware_status.fcgi?session=" + session,
type: 'GET',
contentType: 'application/json'
});
Response example
{
"isFinished": false,
"bitsWritten": 4096
}