CodeMash
  • 🚀Backend as a service
  • 🦄Roadmap
  • 🍕Release Notes
  • Installation
    • Managed Service
    • 🏗️AWS-CDK
    • 🏗️Azure
    • 🏗️Docker
    • 🏗️GC
    • 🏗️Terraform
  • dashboard
    • CodeMash Cloud
    • Project
    • Membership
      • Users
      • Roles
      • Policies
      • Triggers
      • Integrations
        • Apple
        • Azure
        • Facebook
        • Google
        • Twitter
      • Settings
    • Database
      • Collections
        • Schema
          • From Template
          • Structure
        • Tabs
        • Triggers
        • Indexes
        • Shared Forms
      • Taxonomies
        • Terms
        • Schema
        • Settings
      • Aggregation
      • Imports
      • Exports
      • Backups
    • Files
      • Integrations
        • CodeMash
        • S3 Bucket
    • Notifications
      • Push
        • Push Templates
        • Push Templates API
        • Push Notifications
        • Push Notifications API
        • Devices
        • Devices API
        • Integrations
          • Firebase
          • One Signal
          • Expo
      • Email
        • Email Templates
        • Emails
        • Integrations
          • AWS SES
          • Twilio Sendgrid
          • Mailgun
      • 🏗️Server events
      • 🏗️Sms
    • Payments
      • Integrations
        • Apple Pay
        • Google Pay
        • Stripe
        • Kevin.
        • Paysera
        • Decta
    • Scheduler
    • Logs & Monitoring
    • Code
      • Functions
        • Function Inputs
        • Function Templates
          • Node.js
          • Python
          • Ruby
          • Java
          • Go
          • .NET Core
      • CodeMash Functions
        • Google Functions
          • Google Calendar
          • Google Gmail
        • Microsoft Functions
          • Microsoft 365 Users
          • Microsoft 365 Calendar
        • Collection Find
        • Collection Update
        • Users Find
        • Image Resize
        • Html To Pdf
        • Word Document
        • Barcode
        • QR Code
        • Send Email
        • Send Notification
        • Email Reminder
        • Notification Reminder
      • Integrations
        • AWS Lambda
        • Google Cloud Functions
        • Azure Functions
  • Other Topics
    • Apple
      • Developer Portal
      • Bundle Identifier
      • Team ID
      • Service ID
      • Key ID
    • Triggers
    • Tokens Binding
      • Project Tokens
      • Initiator Tokens
      • Receiver Tokens
      • Request Tokens
      • Operation based tokens
      • Template Functions
    • Search parameters
      • Paging
      • Filter
      • Sort
      • Projection
    • data-models
    • Errors
  • SDK
    • Node.js
    • TypeScript
    • .NET
    • 🏗️Go Lang
    • 🏗️Flutter
    • 🏗️Swift
    • 🏗️Kotlin
  • CLI
    • 🏗️CodeMash CLI
  • API
    • Get Started
    • Prerequisites
    • How to test?
    • Cors
    • Project
    • Membership
      • Authentication
      • Users
    • Database
      • Collections
        • Aggregate
        • Change Responsibility
        • Count
        • Delete
        • Delete Many
        • Distinct
        • Find
        • Find One
        • Insert
        • Insert Many
        • References
        • Replace
        • Update
        • Update Many
      • Taxonomies
        • Find
    • Files
    • Code
    • Notifications
      • Push
      • Emails
      • Server Events
      • 🏗️Sms
    • Payments
    • Scheduler
    • Logs & Monitoring
Powered by GitBook
On this page
  • Create Key ID
  • Key file .p8
  • Extract the public key from the Key file
  • Find the Key ID using Apple Developer Portal

Was this helpful?

Edit on GitHub
  1. Other Topics
  2. Apple

Key ID

PreviousService IDNextTriggers

Last updated 2 years ago

Was this helpful?

Private keys allow you to access and authenticate communication with some app services — such as APNs, DeviceCheck, MusicKit, and WeatherKit.

Create Key ID

In this example, we will create a key for an app to allow functionality.

  1. In , click Keys in the sidebar, then click the add button (+) on the top left.

  2. Under Key Name, enter a unique name for the key.

  3. Select the checkbox Sign in with Apple and click Configure next to it. You can use any other service you want to enable. (Sign in with Apple is used just for demo purposes).

  4. On the next page, choose the app identifier you want to use and press the Save button.

  5. Click Continue

  6. Review the key configuration, then click Register.

  7. Download the key; it’s saved as a text file with a .p8 file extension.

  8. Click Done.

Key file .p8

The key file can only be downloaded once during the creation process. Once the key has been created, it cannot be downloaded again. It is important to keep the .p8 key file in a secure location, as it is used to verify the authenticity of the Sign in with Apple service and protect user data.

If you lose the .p8 key file or need to download it again, you will need to create a new one.

Extract the public key from the Key file

To extract the public key from the .p8 key file, you will need to use a command line tool called "openssl". This tool is included with most Unix-based operating systems, such as Linux and macOS, and can also be installed on Windows.

To extract the public key from the .p8 key file using openssl, follow these steps:

  1. Open a terminal window.

  2. Navigate to the directory where the .p8 key file is located.

  3. Enter the following command:

openssl ec -in [key file name] -pubout

Replace [key file name] with the name of your .p8 key file. For example:

openssl ec -in mykey.p8 -pubout

  1. The public key will be printed on the terminal window. You can copy and paste the key into your desired location.

Find the Key ID using Apple Developer Portal

  1. Select the private key to view details

  2. The key identifier appears below the key name

In , click Keys in the sidebar, then click the add button (+) on the top left.

Certificates, Identifiers & Profiles
Sign in with Apple
https://developer.apple.com/help/account/configure-app-capabilities/create-a-sign-in-with-apple-private-key
Certificates, Identifiers & Profiles
Create Key ID
Find the Key ID using Apple Developer Portal