# Fix "Certificate Limit Reached"

> Make room for a signing certificate when Apple says your Apple team has used them all: revoke one, or upload one you already have.

Source: https://air.build/docs/app-store/free-up-an-apple-certificate/

Your Agents sign your app with a distribution certificate that belongs to your Apple team. When you switch an Apple team on, AirBuild asks Apple to create one. Apple limits how many distribution certificates a team can have. If the team is already at that limit, Apple says no, and AirBuild opens **Certificate Limit Reached** (on iPhone and iPad its title is **Certificate Limit**).

The team stays off until you make room. Switching it on again doesn't help, because Apple gives the same answer each time. There are two ways out:

| Way | What it does | Keep in mind |
| --- | --- | --- |
| Revoke a certificate | Frees a place. AirBuild then creates a new certificate and finishes switching the team on. | Anything that signs with the revoked certificate stops working. Apple also limits how many certificates a team can create each year. |
| Upload a certificate you already have | Makes that certificate the one your Agents sign with. It doesn't take a place. | You need its `.p12` file and password, exported from the Mac that has it. |

The sheet can open wherever you switch a team on: in **Settings** › **Developer**, on **Connect Your Team** right after you sign in, or on an Agent's **App Store Connect** card. See [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/#switch-teams-on).

## What the sheet shows

At the top is Apple's answer, as Apple wrote it. Under **At Apple** are the team's distribution certificates, each with its kind, its dates and who it was issued to. Every part of the sheet is listed in Settings › [Developer](https://air.build/docs/settings/developer/#certificate-limit-reached).

Two things help you choose:

- On a company's team every certificate is issued to the company, so the names are the same. The issue date tells them apart.
- A certificate marked **In Use** is the one this team signs with now. It comes first and has no **Revoke**; it says "This team signs with this certificate. To remove it, open the team's page." The app doesn't say which page that is.

## Revoke a certificate

Before you choose, ask the people who use this Apple team whether they still sign with any of these certificates. Another person's Xcode, a build Mac or another service may use one. Pick one you know nobody uses anymore, for example one made on a Mac you no longer have.

1. Under **At Apple**, find the certificate and tap **Revoke**.
2. The app asks **Revoke Certificate?**: "All builds signed with this certificate will be invalidated, including builds on other machines and Xcode instances. Apple also limits the number of certificates a team may create per year." Tap **Revoke**.
3. The sheet shows "Revoking Certificate…", then "Creating Signing Certificate…" while AirBuild makes the new certificate.
4. When the team can sign, the sheet closes and the team's switch turns on. What you were doing carries on, for example answering the Agent's card.

Revoking can't be undone. If Apple says no again, its new answer shows under the first one and the list is read again. Revoke another certificate, or upload your own.

## Upload a certificate you already have

If a Mac has one of this team's distribution certificates in Keychain Access, with its private key, you can use that certificate instead. Uploading it doesn't take a place, and nothing is revoked.

First, on that Mac, export the certificate from Keychain Access as a `.p12` file and give it a password. On iPhone or iPad, put the file where the Files app can open it, such as iCloud Drive.

Then, in the sheet:

1. Under **Upload Your Own Certificate**, tap **Upload Certificate…** and choose the `.p12` file.
2. The sheet shows the **File** name. Type the file's **Password**. To pick a different file, tap **Choose Another File**.
3. Tap **Use This Certificate**. The sheet shows "Validating Certificate with Apple…".
4. When the team can sign, the sheet closes and the team's switch turns on.

The certificate has to be an Apple Distribution or iPhone Distribution certificate of this Apple team. It must not be expired or revoked, and the password must open the file.

## If you close the sheet

Tap **Done** to close the sheet. **Done** is dimmed while a revoke or an upload is in progress. If you close it before making room, the team stays off and nothing is revoked. Switch the team on again in **Settings** › **Developer** when you're ready. If the team is still at the limit, the sheet opens again.

## If something goes wrong

Most messages show under Apple's answer, above **At Apple**, with **Try Again**, which reads the list from Apple again.

| What the sheet says | What to do |
| --- | --- |
| "Unable to read that file. Export it again and retry." | Export the certificate from Keychain Access again, with a password, then upload the new file. |
| "Unable to open that file." | Tap **Upload Certificate…** and choose the file again. |
| Another message after **Use This Certificate** | The file wasn't accepted, and the message says why. Check the password, and that the certificate belongs to this Apple team and hasn't expired or been revoked. |
| Another message, and no certificates listed | The list couldn't be read from Apple. Tap **Try Again**. |
| "Apple reports no certificates for this team. It may be holding a pending request instead; try setting up again in a few minutes." | Tap **Done**, wait a few minutes, then switch the team on again. |
| "Apple needs the team's Account Holder to accept an updated agreement before AirBuild can work with this team. Set up the team again to accept it." | An agreement now blocks the team. See [Accept Apple's updated agreement so your Agents can ship again](https://air.build/docs/app-store/accept-apples-new-agreement/). |

## Questions

**Why can't AirBuild use a certificate I made on another Mac?**

Apple doesn't give out a certificate's private key, so a certificate made on another Mac can only be used from that Mac. To use it in AirBuild, export it from that Mac as a `.p12` file and upload it.

**Can a member of my Team do this?**

No. The Team's owner connects the Apple Account and switches Apple teams on, so only the owner sees this sheet. See [Connect your Apple Developer account](https://air.build/docs/app-store/connect-apple-developer-account/#the-team-uses-the-owners-apple-account).
