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:
-
Go to the /di/platform/executables directory.
cd /di/platform/executables
-
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]
-
Go to the /di/platform/dl-dataroot directory.
cd /di/platform/dl-dataroot
-
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:
-
Enable the execute permission.
sudo chmod a+rwx config
-
Verify that the permissions have changed.
ls -l config
The permissions display as drwxrwxrwx.
-
-
Move the privatekey.txt and certificate.pem files to the /dl-dataroot/config directory.
mv privatekey.txt certificate.pem /di/platform/dl-dataroot/config
-
Go to the /config directory.
cd /di/platform/dl-dataroot/config
-
Verify that the privatekey.txt and certificate.pem files are present in the /config directory.
ls