> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/configuration-client/integrated-systems/aperio-integration/configuring-the-aperio-locks-readers/configuring-card-technologies/mifare-classic-cards.md).

# Configuring MIFARE Classic cards for use at Aperio Doors

### Introduction

MIFARE Classic cards can interact with doors fitted with Aperio locks within a Command Centre environment. For this, you will need to import one of the following configuration files provided by Gallagher. These files enable a lock to read data from either a MIFARE Classic sector 1 to 15, or to just read the MIFARE Classic CSN.

Once imported, the configuration needs to be applied to a lock. Then, the lock will only read the sector specified by the configuration, hence all cards for your site will need to have their Gallagher data encoded onto the same sector.

<table><thead><tr><th width="534">Configuration files</th><th></th></tr></thead><tbody><tr><td>Gallagher - MIFARE Sector 1.xml</td><td>Gallagher - MIFARE Sector 9.xml</td></tr><tr><td>Gallagher - MIFARE Sector 2.xml</td><td>Gallagher - MIFARE Sector 10.xml</td></tr><tr><td>Gallagher - MIFARE Sector 3.xml</td><td>Gallagher - MIFARE Sector 11.xml</td></tr><tr><td>Gallagher - MIFARE Sector 4.xml</td><td>Gallagher - MIFARE Sector 12.xml</td></tr><tr><td>Gallagher - MIFARE Sector 5.xml</td><td>Gallagher - MIFARE Sector 13.xml</td></tr><tr><td>Gallagher - MIFARE Sector 6.xml</td><td>Gallagher - MIFARE Sector 14.xml</td></tr><tr><td>Gallagher - MIFARE Sector 7.xml</td><td>Gallagher - MIFARE Sector 15.xml</td></tr><tr><td>Gallagher - MIFARE Sector 8.xml</td><td>Gallagher - MIFARE CSN.xml</td></tr></tbody></table>

**Note:** The configuration files are present in the `'Utilities\Aperio\MIFARE Classic Config Files'` folder. The folder contains configuration files to be used for both AH30 and AH20 hubs.

### Procedure

#### Import the configuration file

1. In the Aperio PAP menu, select **Installation** > **Manage Configurations…**

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-3128c390dec999c0b29a182abf229b2907a1f37b%2Fmanageconfigurations.png?alt=media)
2. Click the **Import...** button.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-3212b471297daada4ad1ad90db2db88013978159%2Fmanageconfigurations_import.png?alt=media)
3. Path your way to the `'Utilities\Aperio\MIFARE Classic Config Files'` folder.
4. Select the configuration you wish to import from either the `'For AH20 Hub'` or `'For AH30 Hub'` folder,and click **Open**.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-b0439d92db9375d4cb6c9d4ef5498ccafaf87691%2Fmanageconfigurations_importselection.png?alt=media)

   **Notes:**

   * For MIFARE Classic cards with data encoded on one of the 15 sectors, select the appropriate file, (e.g. 'Gallagher - MIFARE Sector 15.xml' for cards with data on sector 15).
   * For MIFARE Classic cards using just the card serial number (CSN), select the file 'Gallagher - MIFARE CSN.xml' here. Locks paired with AH20 hub cannot be configured to use CSN. It is only supported for AH30 hubs.
5. Enter the password `"Gallagherconfig1"` and click the **OK** button.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-881d2d68bca30388bebbac00cbad47e57fc06817%2Faperio_enterpassword.png?alt=media)
6. The configuration is now added to your local configuration storage and is shown in the **Available configurations** list. Selecting the imported configuration would show the details in the **Configuration content**.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-ce43f84a712d24610899e425fb354442300e2ebc%2Fmanageconfigurations_result.png?alt=media)
7. The configuration file imported now needs to be applied on the lock.

#### For MIFARE Classic CSN

When using Mifare Classic CSN, you need to do an additional setting in the Aperio door added in command Centre.

1. **Right-click** on the door in the Hardware MLW and select **Properties**.
2. Click the **Configuration** tab.
3. Select the checkbox **Use Mifare Serial Number as Card Data**.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-acc42ce0247526dc592411193b0434673d9fcf16%2Fmifareclassic_doorconfigurationtab.png?alt=media)
4. Select the card type from the drop-down list and click **Apply**.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-75c10465772f40c42e752c7fc84ddbb73776399f%2Fmifareclassic_doorconfigurationtab2.png?alt=media)

### Applying the configuration on the lock

Imported or saved configurations can be applied to a lock from the PAP software, as follows:

1. **Right-click** on the lock to be updated and select **Lock/Sensor** > **Apply Configuration**.

   A list of all the imported or saved configuration files will display.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-999c707a018ca415603fbdbe2884fd1ace98387a%2Fmifareclassic_applyconfiguration.png?alt=media)
2. Select the configuration to be applied on the Aperio lock.

   A Device confirmation window displays showing the configuration in the selected file.

   ![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-70b6db018d756f30932114d25b6bc408ce23145c%2Fdeviceupdateconfirmation.png?alt=media)

   Note: Check the contents displayed to ensure that you have selected the right configuration file.
3. Click **Confirm** to apply the configuration in the selected lock.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/configuration-client/integrated-systems/aperio-integration/configuring-the-aperio-locks-readers/configuring-card-technologies/mifare-classic-cards.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
