Configure an API Credentials File on macOS or Linux

Veracode Integrations

Publication
Veracode Integrations
Edition date
2022-11-17
Last publication
2022-11-17T20:58:34.642989

You can configure a Veracode API credentials file on macOS or Linux and, optionally, run a command to restrict access to the file.

Before You Begin

  • You have generated Veracode API credentials.
  • Depending on your Veracode integration, you have added your Veracode API credentials to the [default] application profile. If you have an existing [greenlight] profile, delete it or rename it to [default].

Steps

  1. On the command line, navigate to the folder for your username. For example, $HOME.

  2. Run this command to create the .veracode folder: $ mkdir .veracode

  3. Navigate to the .veracode folder. For example: $ cd .veracode

    Note: macOS immediately hides the .veracode folder because the folder name begins with a period.

  4. Run this touch command to create the credentials file: $ touch credentials

  5. Open the Finder to .veracode.

  6. Double-click the credentials file to open it in a text editor.

  7. Copy this text and paste it into the credentials file:

    [default]
    veracode_api_key_id = Your API ID
    veracode_api_key_secret = Your API key               
    

    The spaces around the equals sign (=) are not required.

  8. Replace the values with your Veracode API credentials.

  9. Save the credentials file.

  10. Optionally, you can run the following command to restrict access to the credentials file: chmod 600 ~/.veracode/credentials