2.7.2 Generate Public and Private Keys

This section describes how to generate Public and Private Keys.

The Public and Private keys are JSON Web Tokens (JWT) that are generated for Authentication in the Compliance Studio.

Note:

If there is a need to regenerate public and private keys for any reason. The API token for CS API user has to be generated again, and the API token's new value must be provided in the SSO_TOKEN parameter of the config.sh file and reinstall Compliance Studio with updated configuration.
To generate the keys:
  1. Navigate to the <COMPLIANCE_STUDIO_INSTALLATION_PATH>/mmg-home/bin directory.
  2. Run the Shell Script ./key-generator.sh from the directory.
    The Public and Private Keys are generated and available in the <COMPLIANCE_STUDIO_INSTALLATION_PATH>/mmg-home/conf directory.
  3. Copy private.key and public.key files from the following paths:
    <COMPLIANCE_STUDIO_INSTALLATION_PATH>/mmg-home/mmg-studio/conf
    <COMPLIANCE_STUDIO_INSTALLATION_PATH>/batchservice/conf
    <COMPLIANCE_STUDIO_INSTALLATION_PATH>/mmg-home/mmg-load-to-graph/graphservice/ conf
    <COMPLIANCE_STUDIO_INSTALLATION_PATH>/mmg-home/mmg-ui/conf