Skip to main content
All notes

Tizen "Invalid certificate chain" error -12: the build is wrong, not the TV

Why a signed Tizen app installs on one Samsung TV and fails with error -12 on the next: the certificate lists TVs by device ID, and yours is missing.

Om Narayan
Om Narayan
Co-founder, RobusTest

27 October 2026 · FIELD · 3 min

Fig. 1

The app installed on the first Samsung TV without complaint. Same file, second TV, and the install stops with this:

key[error] val[-12] error message: :Invalid certificate chain with certificate in signature.:
processing result : Check certificate error [-12] failed

The natural reaction is to suspect the second TV. Reboot it, toggle Developer Mode, check the network. None of that helps, because nothing is wrong with the TV. The package was never signed for it.

What the error is telling you

A Tizen TV app is signed twice: once with an author certificate that says who built it, and once with a distributor certificate that says where it is allowed to run. For a developer build, "where" is a list of specific televisions.

Samsung's own setup guide is plain about this once you know to look. The prerequisites for creating a certificate include the "Device ID (DUID) for the target device on which you want to install your application," and the distributor certificate step tells you to "add the device ID (DUID) for the target device."

So the certificate carries a list of device IDs. A TV checks the package against its own ID at install time. If the ID is on the list, the app installs. If not, you get error -12 and a message about the certificate chain that does not mention device IDs at all.

A build signed for the first TV in a lab is rejected by every other TV in it.

Why a developer never sees this and a lab always does

One developer with one TV creates the certificate with that TV connected, and the device ID goes in without them noticing. The problem only appears when a build travels: a second TV on the shelf, a new set bought to cover this year's models, a package signed by a build pipeline that has never been near the device it is going to.

In a lab of TVs that is every day. It is also why we stopped treating this error as a device fault. Early on, a failed install counted against the TV, and a healthy set would get marked as unusable because someone uploaded a build signed for its neighbour. The failure belongs to the build, and the report should say so.

The fix

  1. Get the new TV's device ID. Samsung's guide gives the on-screen path: "Menu > Support > Contact Samsung > Unique Device ID." Tizen Studio's Device Manager also shows it for a connected TV. It is not the ID that SmartThings shows.

  2. Add it to the distributor certificate. In Tizen Studio's Certificate Manager, create the distributor certificate with the new device ID included alongside the ones you already had.

  3. Sign the package again with that profile and reinstall:

    tizen package -t wgt -s <profile> -- /path/to/app
    

The step people skip is the last one. Updating the certificate does nothing for a package that was signed before the update.

Put every TV on one certificate

A distributor certificate can list more than one device ID. If you run several TVs, register all of them in a single certificate, and one signed build installs on every set. The alternative is a separate build per TV, and a certificate error every time someone picks the wrong one.

This also changes who has to act when a TV is added. It is not a job for whoever racks the television. The device ID has to reach the people who own the signing profile, and the pipeline has to produce a fresh build before the new set is any use.

Two errors that look similar and are not

  • Certificate in signature was expired means what it says. The certificate ran past its validity date; issue a current one and sign again. The device ID list is not involved.
  • The install never starts, or the connection drops. That is not a certificate problem. The TV is not accepting your host at all, which is a Developer Mode matter and a separate afternoon.

Device-bound signing is one of the ways a TV differs from a phone as a test target: the developer tooling assumes one person and one television, and a fleet has to manage what that assumption leaves out. It sits alongside developer modes that expire on the list of things that are a fleet-management problem before they are a testing problem.

Sources
  1. 1 Samsung — Creating Certificates Prerequisites include the "Device ID (DUID) for the target device on which you want to install your application"; the distributor certificate step says to "add the device ID (DUID) for the target device".
  2. 2 Samsung — TV Device (connecting a TV to the SDK) The Developer Mode steps, and the note that "a problem with the signing certificates is a common reason" for a failed launch from the SDK.
  3. 3 Samsung Developer Forums — Check certificate error: Invalid certificate chain The same error reported by another developer; cited only to show the message is not specific to our lab.

Run this in your own building.

RobusTest is a real device lab — phones, tablets and TVs — installed inside your network. Your devices, your data centre, nothing leaving the building.

Book a demo