For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Credential keys

Understand the DESFire keys that Command Centre uses to encode and protect cards.

Command Centre's DESFire encoding uses three keys. This page explains what each key does, which system writes it, and which of them is safe to share.

DESFire uses a file system model. Applications, which behave like folders, are created on the card. Each application is secured by its own encryption layer and holds files with configurable access properties. A file can be fully encrypted, read only, or unencrypted.

The three keys

Key
NXP terminology
Role

Card Master Key (CMK)

PICC Master Key

Locks the entire card. Written by the first system to encode the card. Can erase the card and change how the card behaves.

Default Application Key (DAK)

Application Default Key

Authenticates the right to create new applications on the card. Written by the first encoder. Safe to share with third parties, because knowing it only allows creation of new applications, not reading of existing ones.

Site Specific Key (SSK)

-

Encrypts the Gallagher Access object. Required to read credentials encoded by a given site.

How Command Centre encodes a card

  1. The card is locked with the Card Master Key. This key is unique per card and is stored encrypted in the Command Centre database.

  2. The site's Default Application Key is applied to the card.

  3. The Default Application Key is used to create the Gallagher object, which is an application on the card.

  4. The Gallagher object is encrypted with the Site Specific Key, or with the Gallagher Default keys if no SSK is configured.

Why the Default Application Key exists

The Default Application Key lets other Gallagher sites, and third parties, add their own applications to the same card. That is what makes one card usable on multiple sites.

Command Centre does not prevent third parties from writing additional application folders to a card it has encoded, provided they have the Default Application Key.

Does sharing the Default Application Key reduce the security of the card? Not in any meaningful way. The only thing someone can do with the Default Application Key is create a new application on the card. It does not allow reading or deleting of existing applications.

Key locations in Configuration Client

You need sufficient rights in Configuration Client to view these.

  • Default Application Key: Server Properties > Card Security > MIFARE Site Keys.

  • SSK / key seed: Server Properties > Card Security. The value is masked with X characters unless you export it.


🔗 Related

Last updated

Was this helpful?