-
Notifications
You must be signed in to change notification settings - Fork 0
Code Signing
OS X and Windows code signing is supported. Windows is dual code-signed (SHA1 & SHA256 hashing algorithms).
On a OS X development machine valid and appropriate identity from your keychain will be automatically used.
| Env name | Description |
|---|---|
CSC_LINK |
The HTTPS link (or base64-encoded data) to certificate (*.p12 file). |
CSC_KEY_PASSWORD |
The password to decrypt the certificate given in CSC_LINK. |
CSC_INSTALLER_LINK |
osx-only The HTTPS link (or base64-encoded data) to certificate to sign Mac App Store build (*.p12 file). |
CSC_INSTALLER_KEY_PASSWORD |
osx-only The password to decrypt the certificate given in CSC_INSTALLER_LINK. |
CSC_NAME |
osx-only Name of certificate (to retrieve from login.keychain). Useful on a development machine (not on CI) if you have several identities (otherwise don't specify it). |
To sign app on build server you need to set CSC_LINK, CSC_KEY_PASSWORD (and CSC_INSTALLER_LINK, CSC_INSTALLER_KEY_PASSWORD if you build for Mac App Store):
-
Export certificate. Strong password must be used. Consider to not use special characters (for bash) because “values are not escaped when your builds are executed”.
-
Upload
*.p12file (e.g. on Google Drive, use direct link generator to get correct download link).Or encode file to base64 (osx/linux:
base64 -in yourFile.p12 -out envValue.txt). -
Set
CSC_LINKandCSC_KEY_PASSWORDenvironment variables (andCSC_INSTALLER_LINK/CSC_INSTALLER_KEY_PASSWORDin addition if you build MAS). See Travis or AppVeyor documentation. Recommended to set it in the CI Project Settings, not in the.travis.yml/appveyor.ymlfiles to avoid special characters (for bash) issues.In case of AppVeyor, don't forget to click on lock icon to “Toggle variable encryption”.
StartSSL is recommended. Please note — Gatekeeper only recognises Apple digital certificates.