Installing the AP Java Protector
Extracting the Setup Scripts and Package
To extract the setup scripts and package:
- Download the
ApplicationProtector_Linux-ALL-64_x86-64_JRE-1.8-64_<version>.tgzfile to any location on the machine where you want to install the protector. - Extract the AP Java installation package using the following command.The following setup files are extracted:
tar –xvf ApplicationProtector_Linux-ALL-64_x86-64_JRE-1.8-64_<version>.tgzApplicationProtector_Linux-ALL-64_x86-64_JRE-1.8-64_<version>.tgzsignatures/ApplicationProtector_Linux-ALL-64_x86-64_JRE-1.8-64_<version>.sig
- Verify the digital signature of the signed AP Java build.
For more information about verifying the signed AP Java build, refer to Verification of Signed Protector Build. - Extract the AP Java installation package again using the following command.The following setup files are extracted:
tar –xvf ApplicationProtector_Linux-ALL-64_x86-64_JRE-1.8-64_<version>.tgzLogforwarderSetup_Linux_x64_<version>.shRPAgentSetup_Linux_x64_<version>.shAPJavaSetup_Linux_x64_<version>.sh
Installing Log Forwarder on Linux
The steps to install the Log Forwarder on a Linux platform using the Interactive mode or through the Silent mode are described in this section.
Note: To preserve all the configurations while upgrading the Log Forwarder, ensure that you backup all the files present under the
/opt/protegrity/logforwarder/data/config.ddirectory.
Using Interactive Mode
To install the Log Forwarder on a Linux platform using the Interactive mode:
Run the Log Forwarder installer using the following command.
./LogforwarderSetup_Linux_x64_<version>.shThe prompt to enter the Audit Store endpoint appears.
Enter the audit store endpoint (host), alternative (host:port) to use another port than the default port 9200 :Enter the Audit Store endpoint that is the Audit Store IP address and the Audit Store port number where the Log Forwarder sends the logs.
Note: The default port number is 9200. If you are using the default port, then do not specify the port number.
Press ENTER.
The added Audit Store endpoint appears on the screen.
The prompt to enter an additional Audit Store appears.
Do you want to add another audit store endpoint? [y/n]:If you want to add more than one Audit Store endpoint, then type y otherwise type n.
If you need to add additional Audit Store endpoints, then repeat both Step 2 and Step 3 for each additional endpoint to add.Type the y key to install into the destination directory.
The Log Forwarder is installed in the
/opt/protegrity/logforwarder/directory.Start the
Protegrity Log Forwarderservice by using the following command./opt/protegrity/logforwarder/bin/logforwarderctrl startThe Log Forwarder is successfully installed.
Using Silent Mode
You can also execute the Log Forwarder installer without any manual intervention, which is also known as the Silent mode of installation. The following parameters must be provided to execute the installer in the Silent mode.
| Parameter | Description |
|---|---|
-e or --endpoint | IP and port of Audit Store. Use multiple -e or --endpoint for multiple endpoints.Default port: 9200 |
-d or --dir | Optional installation directory Default: /opt/protegrity |
At the command prompt, type the following command from the installer directory.
./LogforwarderSetup_Linux_x64_<version>.sh -e <ip address:port number> [-e <ip address:port number>]
To install the Log Forwarder in a custom directory, add the -d or --dir argument to the command to specify the Log Forwarder installation directory.
The following snippet displays a sample command.
./LogforwarderSetup_Linux_x64_<version>.sh -e <ip address:port number> [-e <ip address:port number>] -d <Log Forwarder installation directory>
Installing RP Agent on Linux
The steps to install the RP Agent on a Linux platform using the Interactive mode or through the Silent mode of installation are described in this section.
Using Interactive Mode
To install the RP Agent on a Linux platform using the Interactive mode:
Run the RP Agent installer using the following command.
./RPAgentSetup_Linux_x64_<version>.shThe prompt to enter the upstream hostname or IP address appears.
Please enter upstream host name or IP address []:Enter the ESA Host Name or IP Address.
Press ENTER.
The prompt to enter the username for downloading certificates appears.
Please enter the user name for downloading certificates []:Enter the username for downloading the certificates.
Press ENTER.
The prompt to enter the password for downloading the certificates appears.
Please enter the password for downloading certificates []:Enter ESA password.
Press ENTER to install into the destination directory.
Directories are created under
/opt/protegrity/rpagentby default, and the required installation files are installed in these directories.Ensure that the ESA is up and running with the HubController service in running status to enable automatic downloading of certificates.
If you have installed the RP Agent using the
--nocertparameter, then the ESA certificates are not downloaded during the installation. To manually install the certificates to the/opt/protegrity/rpagent/datadirectory of the RP Agent, perform the following steps.i. Navigate to the
/opt/protegrity/rpagent/bindirectory and run the following command../GetCertificates -u <ESA User with the Export Certificates role and can create JWT token> [-h <ESA host name or IP address>] [--port <port no.>] [-d directory]This initiates a secure communication between the RP Agent and the ESA.
ii. Enter the password for the ESA user.
iii. Verify that the following files have been copied to the
/opt/protegrity/rpagent/datadirectory:- CA.pem
- cert.key
- cert.pem
- rpagent.cfg
- secret.txt
Start the RP Agent by using the following command.
/opt/protegrity/rpagent/bin/rpagentctrl startThe RP Agent is successfully installed.
Using Silent Mode
You can also execute the RP Agent installer without any manual intervention, which is also known as the Silent mode of installation. The following parameters must be provided to execute the installer in the Silent mode.
| Parameter | Description |
|---|---|
-h or --host | The host or IP address of the upstream server that is providing the resilient packages. |
-u or --user | The name of the ESA user with the Export Certificates role. |
-p or --password | The password of the ESA user with the Export Certificates role. |
--port | The port number of the upstream server that is providing the resilient packages. The default port number is 25400. |
-d or --dir | The installation directory, which is an optional parameter. If the installation directory is not specified, then the installation path is the default directory, which is /opt/protegrity. |
At the command prompt, type the following command from the installer directory.
./RPAgentSetup_Linux_x64_<version>.sh (-u <user> -p <password>) [-h <host>] [--port <port>]
If you want to install the RP Agent in a custom directory, then you can add the -d parameter to the command to specify the directory.
The following command displays a sample snippet.
./RPAgentSetup_Linux_x64_<version>.sh (-u <user> -p <password>) [-h <host>] [--port <port>] [-d <dir>]
Installing Application Protector Java on Linux
The steps to install the AP Java on a Linux platform using the Linux installer or through the Silent mode of installation, are described in this section.
Using Linux Installer
To install the AP Java on the Linux platform using the Linux installer:
Run the AP Java installer using the following command.
./APJavaSetup_Linux_x64_<version>.shThe prompt to continue the installation appears.
***************************************************** Welcome to the AP Java SDK Setup Wizard ***************************************************** This will install AP Java SDK on your computer. Do you want to continue? [yes or no]If you want to continue with the installation of the AP Java SDK, then type yes else type no.
If you type yes, then the prompt to enter the installation directory appears.
Please enter installation directory [/opt/protegrity]:If you type no, then the installation of the AP Java aborts.
The AP Java is installed successfully.
The default installation directory for the AP Java on a Linux platform is /opt/protegrity/sdk/java.
Ensure that the following folder structure is maintained:
/liband/datadirectories are located at the same directory levelApplicationProtectorJava.jarandjcorelite.plmare located inside the/libdirectoryconfig.inifile is located in the /data directory

Using Silent Mode
You can also execute the AP Java installer without any manual intervention, which is also known as the Silent mode of installation. The following parameter must be provided to execute the installer in the Silent mode.
| Parameter | Description |
|---|---|
| -dir | Optional install directory Default: /opt/protegrity |
./APJavaSetup_Linux_x64_<version>.sh [-dir <directory>]
Feedback
Was this page helpful?