Share DESFire cards between sites
Share DESFire credentials between Gallagher sites by using supported key arrangements.
This page covers how to share DESFire credentials between sites. Several options are described, with their limitations.
Terms
Original Card Issuer
The organisation that initially encodes the card.
Secondary Site
A site that wants to use a card originally issued by a different organisation.
Card Application
An independent entity on a DESFire card with separate access control, protected by its own keys.
Default Application Key (DAK)
The value that the keys for a new card application are set to by default, before the application creator changes them to something more secure. Found in the Card Security tab of Server Properties in Configuration Client. If an Original Card Issuer is happy to let other sites encode independent applications onto cards they have issued, this is safe to share.
MIFARE Plus / DESFire key seed
A value used as the seed to derive the keys that protect each card. Found in the Card Security tab of Server Properties in Configuration Client.
Choose a scenario

Two Gallagher sites cannot share a MIFARE Plus or DESFire key seed
Scenario 1a: the Original Card Issuer will share the Default Application Key, and the Secondary Site can encode cards
The Original Card Issuer copies the Default Application Key from the Card Security tab of Server Properties and shares it with the Secondary Site.
The Secondary Site creates a new Card Type with a new MIFARE DESFire object.

In the Common Encoding Properties of the DESFire Gallagher Encoded object, reached by right-clicking the object, uncheck Gallagher Issued and enter the Default Application Key.

The Secondary Site encodes cards using that card type.
Scenario 1b: the Original Card Issuer will not or cannot share the Default Application Key, or the Secondary Site cannot encode cards
This scenario is not supported.
Both sites use the same MIFARE Plus or DESFire key seed
The shared key seed may be the same by coincidence, or it may be one the Original Card Issuer was willing to share with the Secondary Site.
Note. Sharing the MIFARE Plus / DESFire key seed between different sites should only be done where there is a high degree of trust between them, for example where they are part of the same organisation.
Scenario 2a: the Secondary Site can encode cards
Encode the cards as normal. The shared key seed means the cards will work.
Scenario 2b: the Secondary Site cannot encode cards
The Original Card Issuer provides their facility code to the Secondary Site. The Secondary Site creates a new Card Type using that facility code.

The Secondary Site then uses that card type when adding an existing card to a cardholder. Because the data already encoded by the Original Card Issuer is being re-used, the card number entered must match what is already encoded on the card.
Limitations
You cannot have two Gallagher objects on the same card that share the same Site Specific Key. This includes the Gallagher Default keys.
You cannot have the same facility code on a card under two different Site Specific Keys.
🔗 Related
Credentials - Keys. Why the Default Application Key is safe to share, and the Site Specific Key is not.
Credentials - Non Diversified DESFire object. Adding a separately keyed object for a third party system to read.
Credentials - Site Specific Key (SSK) vs Default Site Key. Why card sharing stops working once a site moves to an SSK.
Last updated
Was this helpful?
