mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-22 06:59:30 -06:00
Co-authored-by: Matt Henkes <mjhenkes@gmail.com> Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> Co-authored-by: Tyler Biethman <tbiethman@users.noreply.github.com>
1.5 KiB
1.5 KiB
Code Signing
Code signing is done for the Windows and Mac distributions of Cypress when they are built in CI.
electron-builder handles code signing during the create-build-artifacts jobs. This guide assumes that the reader is already familiar with electron-builder's Code Signing documentation.
Installing a new Mac code signing key
Follow the directions supplied by electron-builder: https://www.electron.build/code-signing#travis-appveyor-and-other-ci-servers
Set the environment variables CSC_LINK and CSC_KEY_PASSWORD in the test-runner:sign-mac-binary CircleCI context.
Installing a new Windows code signing key
- Obtain the private key and full certificate chain in ASCII-armored PEM format and store each in a file (
-----BEGIN PRIVATE KEY-----,-----BEGIN CERTIFICATE-----) - Using
openssl, convert the plaintext PEM public and private key to binary PKCS#12/PFX format and encrypt it with a real strong password.➜ openssl pkcs12 -export -inkey key.pem -in cert.pem -out encrypted.pfx Enter Export Password: <password> Verifying - Enter Export Password: <password> - Upload the
encrypted.pfxfile to the Cypress App Google Drive and obtain a direct download link. - Within the
test-runner:sign-windows-binaryCircleCI context, setCSC_LINKto that URL andCSC_KEY_PASSWORDto the password.