# Create Apple Sign In key

In this article you'll read how to create an Apple Sign In certificate, and how to add this certificate to your app in AppMachine.

Start by navigating to the Certificates & API keys page of your app in AppMachine. You'll be able to open this page via the dropdown menu in the Apple App Store section of the Publish page.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FlRL8ul3Pm5GJChFMQBZk%2FPasted_Image_29_11_2022__10_28.png?alt=media&#x26;token=65cee33d-bae7-471b-b3ad-b6d4cfb99ffc" alt=""><figcaption></figcaption></figure>

On the Certificates & API keys page, click Add Certificate in the the Apple Sign In Certificates section.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FQVsq97nMlD2c94zKmCse%2FPasted_Image_29_11_2022__10_31.png?alt=media&#x26;token=0cc0728f-81a9-45ea-b6ad-22c2901446d8" alt=""><figcaption></figcaption></figure>

#### Step 1

Enable the 'Sign in with Apple' capability on the App ID of your app in the Apple Developer portal.

* [Open the identifier page in the Apple Developer portal.](https://developer.apple.com/account/resources/identifiers/list/bundleId)
* Click on your app's identifier to open its details. \
  \&#xNAN;*Your app's identifier is provided in step 1 of the 'Add Certificate' wizard in AppMachine.*
* Scroll down the page to enable the 'Sign in with Apple' option.
* Save and Confirm your changes.

***Note:** You don't have to make any changes to the configuration of the Sign in with Apple capability on this page. The default configuration for this capability is correct.*&#x20;

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FUPDIuCr1x88X1ROXc9vm%2FPasted_Image_29_11_2022__10_58.png?alt=media&#x26;token=178294ee-0a48-48a3-be20-c64abadccbcb" alt=""><figcaption></figcaption></figure>

#### Step 2

* [Open the services identifier registration page in the Apple Developer portal.](https://developer.apple.com/account/resources/identifiers/serviceId/add)
* Enter a description for the service (e.g. your app's name followed by 'Apple sign in').
* Enter the identifier provided by AppMachine.\
  \&#xNAN;*Your app's service identifier is provided in step 2 of the 'Add Certificate' wizard in AppMachine.*
* Click Continue and Register to complete the services ID registration.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FfRzaYA92QTghns8zbFfy%2FPasted_Image_29_11_2022__11_09.png?alt=media&#x26;token=60b03bd8-2711-48d7-8d44-0e963d49c290" alt=""><figcaption></figcaption></figure>

#### Step 3

* [Open the services identifier page in the Apple Developer portal.](https://developer.apple.com/account/resources/identifiers/list/serviceId)
* Click on the service identifier that you've created in the previous step.
* Enable the Sign In with Apple option and click Configure.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2Fy2YBFcOgzAbjQIi4Hoz3%2FPasted_Image_29_11_2022__11_20.png?alt=media&#x26;token=92e6f023-b835-4aaf-8279-7c3f1a10c5cd" alt=""><figcaption></figcaption></figure>

#### Step 4

* After opening the service ID configuration page (see step 3), open the Primary App ID dropdown and select the identifier that you've enabled 'Sign in with Apple' for in step 1.
* Enter the Domain and Return URL as provided by AppMachine.\
  \&#xNAN;*These values are provided in step 4 of the 'Add Certificate' wizard in AppMachine.*
* Click Continue and Save to complete the configuration.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FvUz1arxwtVfQtUovZuq8%2Fimage.png?alt=media&#x26;token=bb841438-7a09-48c2-9348-a66665e185b9" alt=""><figcaption></figcaption></figure>

#### Step 5

* [Open the key registration page in the Apple Developer portal.](https://developer.apple.com/account/resources/authkeys/add)
* Enter a name for the key (e.g. app's name followed by 'Apple Sign in key').
* Enable the 'Sign in with Apple' option and click Configure.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FGcB7fHqW0AcTQADqwKBn%2FPasted_Image_29_11_2022__11_53.png?alt=media&#x26;token=b50e4392-68e0-49fd-bba0-c3a1ada845af" alt=""><figcaption></figcaption></figure>

* Select the identifier of your app in the Primary App ID dropdown.&#x20;
* Click Save to return to the Key registration page.
* Click Continue and Register to complete the key registration process.&#x20;

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FxkvTq9p1OieYZBZuNTyy%2FPasted_Image_29_11_2022__11_57.png?alt=media&#x26;token=21cd089f-1e73-4b6a-9c6b-691badf971a5" alt=""><figcaption></figcaption></figure>

#### Step 6

* Download the key, and copy the key ID and Team ID.
* Upload and enter the key details in AppMachine.

<figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FqGUmPsSesp94p90wAQVc%2FPasted_Image_29_11_2022__11_59.png?alt=media&#x26;token=b11d1dd0-dc9b-4cb8-a0f4-5ec27303e3f5" alt=""><figcaption></figcaption></figure>

You've now successfully linked your Apple Sign In certificate. You can now add Apple Sign In to your app by enabling the Apple Sign In option on the Login Settings page.
