https://github.com/apple-actions/import-codesign-certs
  
  
    GitHub Action for Importing Code-signing Certificates into a Keychain 
    https://github.com/apple-actions/import-codesign-certs
  
actions apple github-actions
        Last synced: 23 days ago 
        JSON representation
    
GitHub Action for Importing Code-signing Certificates into a Keychain
- Host: GitHub
- URL: https://github.com/apple-actions/import-codesign-certs
- Owner: Apple-Actions
- License: mit
- Created: 2020-01-20T05:01:15.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-08-26T17:27:43.000Z (2 months ago)
- Last Synced: 2025-08-26T17:57:42.255Z (2 months ago)
- Topics: actions, apple, github-actions
- Language: TypeScript
- Size: 1.67 MB
- Stars: 243
- Watchers: 10
- Forks: 92
- Open Issues: 1
- 
            Metadata Files:
            - Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # GitHub Action to import Apple Code-signing Certificates and Keys
[](LICENSE)
[](CONTRIBUTING.md)
## Getting Started
* Create a certificate signing request (see [here](https://developer.apple.com/help/account/certificates/create-a-certificate-signing-request/))
* Create a `iOS Distribution (App Store Connect and Ad Hoc)` (same as [these instructions](https://developer.apple.com/help/account/certificates/create-enterprise-distribution-certificates) 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
```yaml
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](action.yml) for more details.
## Contributing
We welcome your interest in contributing to this project. Please read the [Contribution Guidelines](CONTRIBUTING.md) for more guidance.
## License
Any contributions made under this project will be governed by the [MIT License](LICENSE).