<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Preparing the Environment on</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/</link><description>Recent content in Preparing the Environment on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/index.xml" rel="self" type="application/rss+xml"/><item><title>Initializing the Jump Box</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_initializing_the_linux_instance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_initializing_the_linux_instance/</guid><description>&lt;p>The Linux instance should be connected to the AWS EC2 cluster. The following is the minimum system requirements to be configured for a Linux instance.&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Software and Files Required for the Linux instance&lt;/th>
 &lt;th>Purpose&lt;/th>
 &lt;th>Link&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>AWS CLI&lt;/td>
 &lt;td>Manage AWS services&lt;/td>
 &lt;td>&lt;a href="https://aws.amazon.com/cli/">AWS Command Line Interface&lt;/a>&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table></description></item><item><title>Extracting the Installation Package</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_extracting_package/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_extracting_package/</guid><description>&lt;p>This section describes the steps to download and extract the installation package for the Protegrity AWS EC2 Protector.&lt;/p>
&lt;p>To download the installation package:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Download the &lt;strong>ApplicationProtector_Linux-64_x86-64_AWS.EC2.JRE-&amp;lt;JRE_Version&amp;gt;_&amp;lt;Version&amp;gt;.tgz&lt;/strong> file on the Linux instance.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command to extract the files from the &lt;strong>ApplicationProtector_Linux-64_x86-64_AWS.EC2.JRE-&amp;lt;JRE_Version&amp;gt;_&amp;lt;Version&amp;gt;.tgz&lt;/strong> file.&lt;/p>
&lt;p>&lt;code>tar -xvf ApplicationProtector_Linux-64_x86-64_AWS.EC2.JRE-&amp;lt;JRE_Version&amp;gt;_&amp;lt;Version&amp;gt;.tgz&lt;/code>&lt;/p>
&lt;p>The following files are extracted:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>ASG-APJAVA-RPSYNC-EC2-CFT_AWS_&amp;lt;Build_version&amp;gt;.json&lt;/strong>: AWS CloudFormation template used to launch an EC2 instance. This instance is used to run the script for fetching the ESA policy.&lt;/li>
&lt;li>&lt;strong>ApplicationProtector-SAMPLE-APP_SRC_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong>: Package containing the sample application that should be deployed on the AWS EC2 instance.&lt;/li>
&lt;li>&lt;strong>APJAVA-RPSYNC-USERDATA-SCRIPTS_EC2_AWS_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong>: Sample user data script that you can specify in the &lt;code>UserData&lt;/code> property of the CloudFormation template. This script contains the bash commands to launch an EC2 instance.&lt;/li>
&lt;li>&lt;strong>RPSyncConfig_Linux-ALL-64_x86-64_JRE-_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong>: Contains the RPSync configuration file and the script for setting up the certificates between the protector and the ESA.&lt;/li>
&lt;li>&lt;strong>ApplicationProtector_Linux-ALL-64_x86-64_JRE-_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong>: AP Java installation package.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol></description></item><item><title>Creating a JAR for the Sample Application</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_jar_file/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_jar_file/</guid><description>&lt;p>This section describes the typical steps required to create a JAR file for the Sample Application.&lt;/p>
&lt;p>Ensure that Maven 3.6 or later and Open JDK 1.8 are installed on the machine on which you are creating the JAR file.&lt;/p>
&lt;p>To create a JAR file for the Sample Application:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Extract the installation package.&lt;/p>
&lt;p>For more information about extract the installation package, refer to the section &lt;a href="https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_extracting_package/">Extracting the Linux Installation Package&lt;/a>.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Run the following command to extract the files from the &lt;strong>ApplicationProtector-SAMPLE-APP_SRC_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong> file to a directory.&lt;/p></description></item><item><title>Creating a Linux AMI for the Sample Application</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_linux_ami/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_linux_ami/</guid><description>&lt;p>This section describes the typical steps required to create a Linux AMI for the Sample Application. This AMI is then used to deploy the Sample Application on the EC2 Auto Scaling Group.&lt;/p>
&lt;p>&lt;strong>Important:&lt;/strong> The Sample Application is used for demonstrating how the Application Protector Java can be set up with an application, which in this case is a Spring Boot application. You can choose to create a custom AMI by integrating your custom application with the Application Protector Java libraries.&lt;/p></description></item><item><title>Creating Certificates and Keys for TLS Authentication</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_tls_certificate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_tls_certificate/</guid><description>&lt;p>If you already have a server certificate that has been signed by a trusted third-party Certificate Authority (CA), then you do not need create a self-signed server and client certificate.&lt;/p>
&lt;p>Ensure that OpenSSL is installed on the Linux instance to create the required certificates.&lt;/p>
&lt;p>To create the certificates and keys:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>On the Linux instance, run the following command to create a CA certificate and a private key for the certificate.&lt;/p></description></item><item><title>Uploading the Server Certificates to the AWS Identity and Access Management</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_uploading_server_certificates/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_uploading_server_certificates/</guid><description>&lt;p>This section describes the typical steps required to upload the server certificates that you have created in the section &lt;a href="https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_tls_certificate/">Creating Certificates and Keys for TLS Authentication&lt;/a> to the AWS IAM service.&lt;/p>
&lt;p>To upload the server certificate, takes a single command. On the Linux instance, run the following command to upload the server certificate to the AWS IAM service.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">aws&lt;/span> &lt;span style="color:#000">iam&lt;/span> &lt;span style="color:#000">upload&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certificate&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">name&lt;/span> &lt;span style="color:#000">CertificateName&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">body&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certs&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">chain&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">ca&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certs&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">private&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">key&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">key&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>For example:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">aws&lt;/span> &lt;span style="color:#000">iam&lt;/span> &lt;span style="color:#000">upload&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certificate&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">server&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">name&lt;/span> &lt;span style="color:#000">CertificateName&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">body&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">iap&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">wildcard&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">crt&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">certificate&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">chain&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">iap&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">ca&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">crt&lt;/span> &lt;span style="color:#ce5c00;font-weight:bold">--&lt;/span>&lt;span style="color:#000">private&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">key&lt;/span> &lt;span style="color:#000">file&lt;/span>&lt;span style="color:#000;font-weight:bold">:&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">//&lt;/span>&lt;span style="color:#000">path&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">to&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">/&lt;/span>&lt;span style="color:#000">iap&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">-&lt;/span>&lt;span style="color:#000">wildcard&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">key&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The command returns the metadata of the uploaded certificate as an output. The metadata contains the Amazon Resource Name (ARN) for the certificate. You must specify this ARN in the &lt;strong>SSLCertificate&lt;/strong> parameter of the CloudFormation template that you use to create the Auto Scaling Group.&lt;/p></description></item><item><title>Uploading the RPSyncConfig Package to the AWS S3 Bucket</title><link>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_uploading_rpsyncconfig_package/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_uploading_rpsyncconfig_package/</guid><description>&lt;p>The RPSyncConfig package contains the configuration file for configuring the Application Protector Java. It also contains the certificates required to communicate between the ESA and the protector.&lt;/p>
&lt;p>To upload the RPSyncConfig package:&lt;/p>
&lt;ol>
&lt;li>
&lt;p>Navigate to the location where you have extracted the installation package for the AWS EC2 Protector.&lt;/p>
&lt;p>For more information about the extracted installation package, refer to the section &lt;a href="https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_extracting_package/">Extracting the Installation Package&lt;/a>.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Upload the &lt;strong>RPSyncConfig_Linux-ALL-64_x86-64_JRE-_&amp;lt;Build_version&amp;gt;.tgz&lt;/strong>: package to the AWS S3 bucket that you have created in the section &lt;a href="https://docs.protegrity.com/protectors/10.0/docs/iap_ec2_protector/aws_ec2_preparing_environment/aws_ec2_creating_environment/#s3_bucket">Creating an AWS S3 Bucket&lt;/a>.&lt;/p></description></item></channel></rss>