Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Configure Your Environment for CircleCI
- Set up your GitHub repository with CircleCI. You can follow the sign-up steps on the CircleCI website to access your code on GitHub.
- Install the Salesforce CLI, if you haven’t already.
- Follow Authorize an Org Using the JWT Flow for your Dev Hub org, if you haven’t already.
-
Encrypt your server key.
-
First, generate a key and initialization vector (iv) to encrypt your
server.key file locally. CircleCI uses the key and iv to
decrypt your server key in the build environment.
Run the following command in the directory containing your server.key file. For the <passphrase> value, enter a word of your own choosing to create a unique key.
1openssl enc -aes-256-cbc -k <passphrase> -P -md sha1 -nosaltThe key and iv value display in the output.
1key=****24B2 2iv =****DA58 - Note the key and iv values, you need them later.
-
Encrypt the server.key file using the newly generated key and
iv values. Run the following command in the directory containing your
server.key file, replacing <key> and
<iv> with the values from the previous step.
1openssl enc -nosalt -aes-256-cbc -in server.key -out server.key.enc -base64 -K <key> -iv <iv>You generate a new key and iv value every time you run the command in step a. In other words, you can't regenerate the same pair. If you lose these values you must generate new ones and encrypt again.
-
First, generate a key and initialization vector (iv) to encrypt your
server.key file locally. CircleCI uses the key and iv to
decrypt your server key in the build environment.