Skip to content

Import Code-Signing Certificates

Actions
Imports a PKCS12 certificate and private key into a macOS Keychain
v5.0.0
Latest
Star (217)

Tags

 (2)

GitHub Action to import Apple Code-signing Certificates and Keys

License PRs welcome!

Getting Started

  • Create a certificate signing request (see here)
  • Create a iOS Distribution (App Store Connect and Ad Hoc) (same as these instructions but select the different type on step 3)
  • Download the certificate (must be done upon creation and will be called ios_distribution.cer)
  • Import into login section of Keychain Access (must be launched with spotlight because it doesn't show up in Launchpad)
  • Select My Certificates and then export the certificate as a .p12 (it will prompt for a password)
  • Copy the .p12 in base64 format ( base64 -i ios_distribution.p12 | pbcopy )
  • Add it as a secret called APPSTORE_CERTIFICATES_FILE_BASE64 and the password as APPSTORE_CERTIFICATES_PASSWORD

Usage

uses: apple-actions/import-codesign-certs@v3
with: 
  p12-file-base64: ${{ secrets.APPSTORE_CERTIFICATES_FILE_BASE64 }}
  p12-password: ${{ secrets.APPSTORE_CERTIFICATES_PASSWORD }}

Multiple Certificates

If you need to add multiple certificates, select them all in the keychain when creating your p12 file. You do not need multiple separate steps.

Additional Arguments

See action.yml for more details.

Contributing

We welcome your interest in contributing to this project. Please read the Contribution Guidelines for more guidance.

License

Any contributions made under this project will be governed by the MIT License.

Import Code-Signing Certificates is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Imports a PKCS12 certificate and private key into a macOS Keychain
v5.0.0
Latest

Tags

 (2)

Import Code-Signing Certificates is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.