Creating and Configuring an Encryption Key

Use the Java genkey tool, located in the /executables directory, to create an additional private key and certificate for encrypting software. Follow the instructions in this topic if you did not use the install-di-diveline script to create the privatekey.txt and certificate.pem files during the DiveLine installation.

Complete the following steps:

  1. Go to the /di/platform/executables directory.

    cd /di/platform/executables

  2. Use genkey and the following syntax to create an encryption key:

    ./genkey <country> <state> <location> <organization> <server name> <email address>

    For example:

    ./genkey US MA Burlington Dimensional Insight ubuntu [email protected]

  3. Go to the /di/platform/dl-dataroot directory.

    cd /di/platform/dl-dataroot

  4. View permissions for /config .

    ls -l

    The permissions display.

    If the permissions are -rwxrwxrwx, you can open and modify the directory and its contents. Proceed to step 5.

    If you do not have permission:

    1. Enable the execute permission.

      sudo chmod a+rwx config

    2. Verify that the permissions have changed.

      ls -l config

      The permissions display as drwxrwxrwx.

  5. Move the privatekey.txt and certificate.pem files to the /dl-dataroot/config directory.

    mv privatekey.txt certificate.pem /di/platform/dl-dataroot/config

  6. Go to the /config directory.

    cd /di/platform/dl-dataroot/config

  7. Verify that the privatekey.txt and certificate.pem files are present in the /config directory.

    ls