Firmware Management User Guide

INeS IoT Security Platform, version 1.9.6.4

1. Introduction

The Firmware Management Service (FMS) of the INeS IoT Security Platform lets an organization manage and sign the firmware of its IoT devices:

  • Products: the device products whose firmware is managed, and how their firmware is downloaded.
  • Firmware: the firmware versions of each product, their signature, and whether a version is distributed to devices.
  • Signing Certificates: the key material used to sign firmware.
  • Signing Templates: how a firmware is signed (signing certificate, upload method, hash algorithm, signature encoding).

FMS is a module that is enabled per tenant. CMS and DPS are always available; FMS is available only to tenants that subscribe to it (see section 1.3).

This document describes how to use the Firmware Management Service from the portal. The code signing REST API is described in the Developers Guide (Documents → Developers Guide).

1.1 Getting access to FMS

Open the Firmware Management Service from the Firmware Management card on the HOME page ("Manage templates, certificates, firmware, and products."), or from the top bar: Services → Firmware Management.

HOME page with the FMS card
HOME page with the FMS card

The FMS menu contains: Dashboard, Templates, Certificates, Firmware and Products.

On every FMS form, the Tenant drop-down is shown to global roles only, and the Organization drop-down is hidden for organization-level roles.

1.2 Access rules

The same rules apply to Products, Firmware, Signing Certificates and Signing Templates:

Role View Create, edit, deactivate, re-activate, delete Sign, re-sign Download firmware
Admin ✓ ✓ ✓ ✓
Tenant Admin ✓ ✓ ✓ ✓
Organization Admin ✓ – – –
Tenant Operator, Organization Operator ✓ – – –
Auditor, Tenant Auditor ✓ – – ✓
Organization Auditor ✓ – – –

Important Note:

  • Organization Admin can only view FMS. This differs from CMS and DPS, where an Organization Admin can manage most objects of the organization.
  • Admin, Tenant Admin, Auditor and Tenant Auditor can download firmware.
  • Every change in FMS also requires the target tenant to have FMS enabled. This applies to every role, including Admin. Otherwise the portal shows that the module is not enabled for the selected tenant.

1.3 Tenants without FMS

If your tenant does not subscribe to FMS:

  • The Firmware Management card on the HOME page is greyed out, with a lock and the badge Not subscribed, and the line "Contact your account manager to enable this module." Hovering the card shows: "Your tenant does not have Firmware Management. Contact your account manager to enable it."
  • In the Services menu, Firmware Management is labelled Not subscribed.
  • Calls to the code signing API return 403 MODULE_NOT_ENABLED_FOR_TENANT (see the Developers Guide).
  • Firmware downloads and manifests for devices return 404.

New tenants start with CMS and DPS enabled and FMS disabled. To subscribe to FMS, contact your WiseKey account manager.

HOME page with the locked FMS card ("Not subscribed")
HOME page with the locked FMS card ("Not subscribed")

2. Firmware Management

The objects depend on each other. Create them in this order:

  1. Signing Certificate (section 2.3)
  2. Signing Template, which uses the certificate (section 2.4)
  3. Product, which uses the template as its default (section 2.1)
  4. Firmware version of the product, then Sign it (section 2.2)

2.1 Products

A product groups the firmware versions of one device product and defines how they are signed and downloaded.

2.1.1 Creating a Product

Step 1: Open Products from the FMS menu, then click New (plus icon, above the list). The New Product form opens.

Step 2: Fill all the required fields (*):

  • Tenant* / Organization*: the owner of the product (shown according to your role).
  • Business Product ID*: your own numeric identifier of the product.
  • Name*: the product name.
  • Firmware Download Option*:
    • INeS firmware download service: devices download firmware from the platform. The Url Prefix is set automatically and shown read-only.
    • Custom URL: firmware is downloaded from your own server. Choose the scheme (http://, https:// or ftp://) and enter the Url Prefix*.
  • Default Signing Template*: the template used to sign every firmware version of this product. After you select it, its Signing Certificate, Upload Method and Hash Algorithm (and Hash Format for the hash method) are shown read-only.
  • Description: optional.

Step 3: Save.

Create Product form
Create Product form

2.1.2 Product List page

All products are listed with: Firmware Product ID, Name, Business Product ID, Description, Tenant (global roles), Organization and Status.

The list can be filtered by Tenant, Organization, Status and name.

The Actions menu allows to:

  • Clone a product: copies its information into a new product.
  • Edit a product.
  • Delete a product (only when it is Inactive, see section 2.5).
Products list page
Products list page

2.1.3 Product Details page

The Details page shows the Firmware Management Configuration, Product Information and Identifying Information. The possible operations are: Edit, Deactivate or Re-activate, and Delete (only when Inactive).

Deactivating a product stops the distribution of every firmware version of the product. The portal asks for confirmation: "Devices will stop receiving every firmware version of this product…".

2.2 Firmware

A firmware is one version of a product.

2.2.1 Creating a Firmware version

Step 1: Open Firmware from the FMS menu, then click New (plus icon, above the list). The New Firmware form opens.

Step 2: Fill all the required fields (*):

  • Tenant* / Organization*.
  • Product*: the product of this version. The Resolved Signing Template of the product is shown read-only (template, signing certificate, upload method, hash algorithm, hash format). If the product has no default template, the portal shows "The selected product does not have a default signing template."
  • Component Name*.
  • Priority*: Normal Update, Security Update or Critical Update.
  • Version Name*: letters, digits and "." only.
  • Version Id*: a number, 1 or higher. It must be unique for the product within the organization.
  • Depending on the Upload Method of the template:
    • File: upload the firmware file*, up to 200 MB; a larger file is refused with that limit. The file dialog offers .stm32 for a TF-A (STM32) template, .bin for FIP (STM32), and .bin, .img, .dll or .so otherwise. The same file (same SHA-256) cannot be uploaded twice.
    • Hash: enter the Hash Value*. The portal shows an OpenSSL Command that computes it; replace firmware.bin with your file. A hexadecimal hash must have 64, 96 or 128 characters for SHA-256, SHA-384 or SHA-512. Compute it with the Hash Algorithm of the signing template: a hash of another length is rejected, and the OpenSSL command uses that algorithm. No file name is asked for: the firmware is named {Component Name}_{Version Name}.bin, as through the API, and that name can have at most 255 characters.
  • Description: optional.

Step 3: Save. The new version is in state New.

Important Note: you do not choose the template, the signing certificate, the upload method or the hash algorithm when you create a firmware. They always come from the default signing template of the product. Creation is refused if the product is Inactive, has no template, if the template is Inactive, or if the signing certificate is missing, expired or Inactive.

Create Firmware form
Create Firmware form

2.2.2 Firmware List page

All firmware versions are listed with: ID, Component Name, Version ("Version Name (ID: n)"), Product, Type (File or Hash), Created at, Tenant, Organization and Status (for example New, Signed).

The list can be filtered by Tenant, Organization, name or version, Firmware Type, and creation date (From / To, UTC).

Firmware list page
Firmware list page

2.2.3 Firmware Details page

The Firmware details page starts with a status banner (for example Signed), followed by:

  • Signing Snapshot: the signing template, upload method, hash algorithm, signing certificate (with its expiration date and status), and the Status, Signed At and Signed By of the version.
  • Firmware Artifact: type, package storage, file name and size, hash value, Version Id, Version Name, and the Firmware Download URL used by devices (see section 3: this URL format will change).
  • Firmware Information and Identifying Information.
  • Download File: the Download button for the signed package.

For a firmware created with the Hash upload method, the page shows a Hash-Only Firmware notice: "This firmware was created using only hash values. The actual firmware file is managed externally and not stored in this system." The Firmware Artifact section then shows a Reference Name instead of a file name.

The Deactivate (or Re-activate) button is at the bottom of the page.

A version can be edited only while it is in state New. In file mode, editing requires uploading the file again.

Firmware Details page
Firmware Details page

2.2.4 Signing a firmware

Signing is done from the Firmware Details page. There is no separate signing page.

Step 1: Open the Details page of a version in state New, then click Sign.

Step 2: If the signing certificate does not store its PFX password, the Enter PFX Password dialog opens. Enter the PFX Password and click Sign.

The firmware is signed with the certificate and template of its product. When signing is done, the version becomes Signed and the signed package can be downloaded from the Download File section.

Sign button and Enter PFX Password dialog
Sign button and Enter PFX Password dialog

Re-sign: when a Signed version uses a signing certificate that has expired, a Re-sign button is shown. In the Re-sign Firmware dialog, choose a valid Signing Certificate and the Hash Algorithm (the current one is shown), plus the PFX Password if the certificate does not store it. If re-signing fails, the version keeps its previous certificate and algorithm.

STM32MP firmware is signed through the API only. The portal signs with Single PFX certificates. For STM32MP13 and STM32MP15 key material, use the code signing API (Developers Guide): the API returns a signing job, and the signed image is downloaded from the job. When the job succeeds, a Signed firmware version appears in the portal; its Download File section shows "Signed on the External Tools VM", and the signed image must be downloaded from the signing job.

Signing history: there is no separate history page. Use the Status column of the Firmware list, the Signing Snapshot of the Details page, and the Audit Log (Sign operations on Firmware).

2.2.5 Deactivate and Re-activate a firmware version

A firmware version can be deactivated and re-activated from its Details page.

  • An Inactive version is not distributed to devices. The portal asks for confirmation: "Devices will stop receiving this firmware version: its manifest and download are withdrawn. Continue?"
  • A version is also not distributed when its product is Inactive (section 2.1.3).

The status banner on the Firmware Details page shows when a version is not distributed:

  • "Inactive (Signed): not distributed to devices": the version itself is Inactive (the signing state is shown in brackets).
  • "Product Inactive (Signed): not distributed to devices": the product is Inactive.
Details page of an Inactive version
Details page of an Inactive version

2.3 Signing Certificates

A signing certificate holds the key material used to sign firmware.

2.3.1 Creating a Signing Certificate

Step 1: Open Certificates from the FMS menu, then click New (plus icon, above the list). The New Signing Certificate form opens.

Step 2: Fill all the required fields (*):

  • Tenant* / Organization*.
  • Name*: unique within the organization (upper and lower case are treated as the same name).
  • Key Material Type*:
Key Material Type What you upload Slots Signing
INeS native — Single PFX (default) Pfx File* (.pfx, .p12) and Pfx Password* 1 Portal and API
STM32MP13 — Key package Key Bundle ZIP* 8, in order API only
STM32MP15 — Single key Key Bundle ZIP* 1 API only
  • For Single PFX, tick Save PFX Password to store the password. If you do not save the password, you will be required to enter it when signing the firmware.

Step 3: Save.

Key Bundle ZIP for STM32MP. The ZIP contains the keys and a passwords.txt file with their passwords; no password is entered on the form. Use one of these layouts, not both:

  • PEM key pairs privateKeyNN.pem + publicKeyNN.pem, as produced by the vendor key generation tool; or
  • PFX files keyNN.pfx.

NN is the slot number. STM32MP13 uses 8 slots, STM32MP15 uses 1. If publicKeyHashNN.bin files are present, they are checked against the keys.

Errors:

  • "Password is invalid or the PFX file is corrupted."
  • A certificate with the same thumbprint already exists.
  • "Another signing certificate in this organization already uses this name."
Create Signing Certificate form
Create Signing Certificate form

2.3.2 Signing Certificate List page

All signing certificates are listed with: ID, Name / Issued DN, Valid From, Valid To, Thumbprint (for key packages: "Slot NN: fingerprint"), Key Material Type, Tenant, Organization and Status.

The list can be filtered by Tenant, Organization, thumbprint or subject, and issue date (From / To, UTC).

Signing Certificates list page
Signing Certificates list page

2.3.3 Signing Certificate Details and Edit pages

The Details page shows the Certificate Subject Information, the Details (Name, Serial Number, Issued At, Signature Algorithm, Valid From / Until, Status), the Key Material (type, curve, active signing slot and, for each slot, its public key fingerprint) and the Identifying Information.

On the Edit page:

  • The Key Material Type cannot be changed.
  • STM32MP key material cannot be replaced.
  • For Single PFX, the PFX file can be replaced (Replace PFX File (Optional)) only when the certificate is Inactive and has never been used to sign. Leave blank to keep existing keys. After the replacement, the certificate becomes Active again.

2.4 Signing Templates

A signing template defines how a firmware is signed.

2.4.1 Creating a Signing Template

Step 1: Open Templates from the FMS menu, then click New (plus icon, above the list). The button is shown only to roles that can create templates. The New Signing Templates form opens.

Step 2: Fill all the required fields (*):

  • Tenant* / Organization*.
  • Template Name*.
  • Upload Method*: File (the firmware file is uploaded) or Hash (only its hash is sent). With an STM32MP certificate, only File is available: "Fixed to File: the vendor tool signs a firmware image, not a hash."
  • Signing Certificate*.
  • ECDSA Signature Encoding: shown only when the certificate is a Single PFX ECDSA P-256 certificate. Values: Existing/default behavior, DER, or Raw R || S binary. If you change to another certificate, the encoding is reset and a warning is shown.
  • Vendor signing operation*: TF-A (STM32) or FIP (STM32). Shown for STM32MP certificates only. The platform then selects the matching vendor execution profile, shown read-only on the Details page.
  • Hash Algorithm*: SHA256, SHA384 or SHA512. Not shown for STM32MP certificates.
  • Hash Format*: Hex or Base64. Shown for the Hash method only (not for STM32MP).
  • Description: optional.

Step 3: Save.

Create Signing Template form
Create Signing Template form

2.4.2 Signing Template List page

All signing templates are listed with: ID, Name, Certificate, Upload Method, Hash Algorithm, Hash Format, ECDSA Signature Encoding, Tenant, Organization and Status.

The list can be filtered by Tenant, Organization, Status and name.

The Details page shows the Signing Configuration, the Template Information and the Identifying Information.

Signing Templates list page
Signing Templates list page

2.5 Deleting FMS objects

Products, firmware, signing certificates and signing templates follow the same rules:

  • Only an Inactive object can be deleted. Deactivate it first: the Delete button appears on the Details page of an Inactive object (and in the Actions menu of the Products list).
  • The Delete {type} page (for example Delete Product) shows the name of the object and explains: "It disappears from every list, but its record and audit history are kept." Click Delete to confirm, or Cancel.
  • Deletion is logical: the object disappears from the lists, but its record and its audit trail are kept, and the signing history still shows the name of the deleted object.
  • An object that has been used cannot be deleted. It is kept for traceability:
    • a product that still has firmware versions or signing jobs;
    • a signing template that is the default template of a product, or was used for a firmware or a signing job;
    • a signing certificate used by a template, a firmware or a signing operation.
  • A failed signing job does not count as a use, unless it stored an artifact.
  • When a firmware is deleted, all of its manifests and download links, old and new, stop working. A signed version that is deleted keeps its Version Id, which cannot be reused.
Delete page
Delete page

3. Firmware distribution to devices

Devices download firmware and manifests from the platform. A download or a manifest request returns the same neutral 404 when:

  • the version does not exist, is Inactive or has been deleted;
  • the product is Inactive;
  • the tenant does not subscribe to FMS.

Will change. The device download links and manifest URLs will change in a later release (token-based links and authenticated manifests). Do not build long-term integrations on the current URLs. The Developers Guide describes the current device API.

4. Administration: Tenants → Modules

For the Global Administrator.

Open Administration, then Tenants → Modules in the left menu. To open the modules of one tenant directly, use the menu of that tenant's row in the Tenants list and choose Modules.

Only a Global Administrator can change modules. A Global Auditor can only view them.

4.1 Modules list page

The Modules page lists the tenants with their ID, name, Status and enabled modules (CMS, DPS, FMS badges). Click Search to filter the list by tenant name or ID, Status and FMS. Click Modules on a row to open the modules of that tenant.

Modules list page (filtered to one tenant)
Modules list page (filtered to one tenant)

4.2 Tenant Modules page

The Tenant Modules page of a tenant shows one card per module, with its Mode, Origin, Revision and Last change.

  • CMS and DPS show "Always available for now."; they cannot be switched off.
  • FMS can be enabled or disabled with the Enable FMS… or Disable FMS… button at the bottom of the FMS card. The buttons are shown only to the Global Administrator.

The History table below lists every change: when (UTC), module, who made it, and the reason.

Tenant Modules page with its History
Tenant Modules page with its History

4.3 Disabling FMS for a tenant

Step 1: On the Tenant Modules page, click Disable FMS….

Step 2: The Disable FMS for {tenant} dialog shows the module state now and after the change, and warns: "Every user of {tenant} loses FMS within 30 seconds: its pages, the code-signing API and firmware served to devices."

Step 3: Enter the Reason*. It is kept in the module history; not shown to the tenant.

Step 4: Type the tenant name in Type {tenant} to confirm, then click Disable FMS.

Every change is recorded in the module History and in the audit log, and takes effect within 30 seconds.

4.4 Enabling FMS for a tenant

Step 1: On the Tenant Modules page of a tenant without FMS, click Enable FMS….

Step 2: The Enable FMS for {tenant} dialog shows the module state now and after the change.

Step 3: Fill the fields:

  • Under contract (Origin: Contract; otherwise Manual): tick it when the tenant has a contract for FMS.
  • Commercial reference (optional): a contract, order or CRM reference.
  • Reason*: kept in the module history; not shown to the tenant.

Step 4: Click Enable FMS. You do not need to type the tenant name to enable FMS.

Disable FMS dialog
Disable FMS dialog