SlideShare a Scribd company logo
1 of 10
Download to read offline
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Pre-Requisites ...............................................................................................................................................1
Create – SSL Certificate.................................................................................................................................1
Create RSA Key File ...................................................................................................................................2
Create a CSR Key File.................................................................................................................................2
Create Certificate......................................................................................................................................3
Install – SSL Certificate..............................................................................................................................3
Configure Listener.....................................................................................................................................3
Edit Listener ..............................................................................................................................................4
Select Certificate.......................................................................................................................................4
Configure Certificate Information.............................................................................................................5
Create Listener..........................................................................................................................................6
Create Security Group...............................................................................................................................6
Configure Security.....................................................................................................................................7
ELB Security Group....................................................................................................................................7
Configure App Security Group ..................................................................................................................7
Validate App Server Inbound Rules ..........................................................................................................8
Configure Stickiness..................................................................................................................................8
Enable Stickiness...................................................................................................................................8
Enable LB Cookies .................................................................................................................................9
Enable LB Status....................................................................................................................................9
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
1 | P a g e
Overview
The purpose of this guide is to configure Amazon AWS Load Balancer with 2 nodes (instance) and configure
HTTPS Listener for Elastic Load Balancer (ELB).
We will install and configure OpenSSL Certificate that’s is self-signed certificate and we would be
configuring “RSA” based chippers.
OpenSSL Certificate can be used for testing environments. OpenSSL (SelfSigned) certificate(s) should not
be installed / configured for production environments.
To secure the environment, we will create a security group for ELB.
We would also need to configure stickiness if the request has been process from same node. It’s
mandatory to enable it, if the application session replication is not supported.
Amazon ELB supports round-robin (rr) method of Load Balancing.
The main purpose of load balancer is provide high availability.
Applies To
 Amazon EC2 Instance
 Windows 2012 Server
 Security Group for communication between ELB and application instances
Pre-Requisites
 A minimum of 2 EC2 instances have to be running in order to configure ELB.
 Common Name (ServerName)
 OpenSSL files
 Private key file in pem encoded format
 Public key certificate file in pem encoded format
 A http listener is already configured and working
Create – SSL Certificate
There is 3 step process to generate a SSL certificate.
1) Generate RSA Key File
2) Create CSR (Certificate Signing Request) file.
3) Create SSL Certificate
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
2 | P a g e
Create RSA Key File
First and foremost thing is the generate SSL certificate, is to generate RSA based chipper key generation,
to generate the pem encoded format RSA key file with 2048 encryption bits, run the command; for easier
identification we will name the file prefixing it as “-key” for the output file.
openssl genrsa -out reservopia-key.pem 2048
Create a CSR Key File
Next step is to create the CSR (Certificate signing Request) file which is also pem encoded format CSR file
with the encryption algorithm to create CSR file, run the command; for easier identification we will name
the file prefixing it as “csr” for the output file.
Also you need to pass the RSA key file that was generated in the earlier step.
We will not set challenge password for the certificate.
openssl req -sha256 -new -key reservopia-key.pem -out reservopiacsr.pem
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
3 | P a g e
Create Certificate
Finally, we will create the certificate in a pem encoded format; for easier identification of the file we will
name the file prefixing “-certificate” for the output file. You would also need to pass the “csr” and “-key”
files for creating the certificate.
Argument Parameter Passed Comments
X509 NA Self Signed Certificate
-days 365 Certificate Validity in Days
-in reservopiacsr.pem Input Certificate Sign Request
-signkey reservopia-key.pem RSA key File
-out reservopia-certificate.pem Output Filename
openssl x509 -req -days 365 -in reservopiacsr.pem -signkey reservopia-key.pem -out reservopia-
certificate.pem
Install – SSL Certificate
Next step, after creating the certificate, you have to install it on the ELB HTTPS Listener port.
Alternatively, you can also perform the certificate installation via AWS CLI.
Configure Listener
Click on the “Load Balancers” and choose the Load Balancer Name where in you intend to install the
created SSL certificate. Then click on “Listeners” tab and click on “Edit” button.
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
4 | P a g e
Edit Listener
Next step is to add the listener to add a new listener, click on “Add” button to add a new listener, configure
listener according to the below table and click on “Change” option;
Listener Description Option
Load Balancer Protocol HTTPS (Secure HTTP)
Load Balancer Port 443
Instance Port 80
Cipher N/A (Not Configured)
SSL Certificate Change
Select Certificate
Next step is to choose “Certificate Type”, since we are deploying the certificate for testing environment,
choose the option “Upload a new SSL certificate to AWS Identity and Access Management (IAM)”.
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
5 | P a g e
Configure Certificate Information
Next step is to configure the certificate information in the respective fields; Open the respective files in a
notepad, copy the contents of the file and paste it into the appropriate fields and click on “Save” button.
Certificate Filed Information
Certificate Name:* Customizable or set it as Application Name
Private Key:* RSA Key file contents “reservopia-key.pem”
Public Key Certificate:* Public Key file contents “reservopia-certificate.pem”.
Certificate Chain: Optional
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
6 | P a g e
Create Listener
After validating the certificate, certificate will be install on the Elastic Load Balancer and the listener is
created automatically.
Create – ELB Security Group
After installing the certificate on ELB, next step is to secure the servers. In order to secure the environment
we will create a new security group for ELB for communicating between the application servers for http
and https access only.
Create Security Group
In order to create a new security group click on “Security Groups” and click on “Create Security Group”;
Set security group name, description and most important choose the VPC wherein the ELB has been
configured.
Add “Inbound” rules for http and https and source as anywhere and then click on “Create” button.
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
7 | P a g e
Configure Security
After configuring the inbound rules on the ELB security group, click on “Security” tab of the ELB and then
click on “Edit” button.
ELB Security Group
Next step is to choose the security group that has been configured for “ELB” and click on “Save” button.
Configure App Security Group
In order to secure the application servers, we will configure inbound rules of application security group
such that communication between ELB and application servers only is permitted.
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
8 | P a g e
Validate App Server Inbound Rules
After saving, validate the configured inbound rules and ensure the name of the “ELB Security group” in
the source.
Configure Stickiness
Stickiness is one of the most important configuration when the application does not know as to how to
handle sessions more than one server in a pool of servers, since the request would be sent in a round
robin method unless stickiness is enabled.
Enable Stickiness
By default stickiness is disabled. To enable it click on “Edit” link.
How To Configure ELB for HTTPS Listener – SelfSigned Certificate
9 | P a g e
Enable LB Cookies
In order to stickiness, cookie information has to be coupled with network packet; if application is able not
able to session replication choose the option “Enable Load Balancer Generated Cookie Stickiness” option
and leave blank “Expiration Period” and then click on “Save” button.
Enable LB Status
After saving, current stickiness configured will be displayed in the ELB description tab.

More Related Content

More from VCP Muthukrishna

How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7VCP Muthukrishna
 
How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7VCP Muthukrishna
 
How To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationVCP Muthukrishna
 
How To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellHow To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellVCP Muthukrishna
 
How To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellHow To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellVCP Muthukrishna
 
How To List Files and Display In HTML Format
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML FormatVCP Muthukrishna
 
How To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellVCP Muthukrishna
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...VCP Muthukrishna
 
How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7VCP Muthukrishna
 
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuHow To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuVCP Muthukrishna
 
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoWindows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoVCP Muthukrishna
 
How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7VCP Muthukrishna
 
Windows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopWindows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopVCP Muthukrishna
 
How To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsHow To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsVCP Muthukrishna
 
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterHow To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterVCP Muthukrishna
 
How To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueHow To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueVCP Muthukrishna
 
How To Create PowerShell Function
How To Create PowerShell FunctionHow To Create PowerShell Function
How To Create PowerShell FunctionVCP Muthukrishna
 
How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7VCP Muthukrishna
 
How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7VCP Muthukrishna
 
How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7VCP Muthukrishna
 

More from VCP Muthukrishna (20)

How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
 
How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7
 
How To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User Validation
 
How To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellHow To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShell
 
How To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellHow To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShell
 
How To List Files and Display In HTML Format
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML Format
 
How To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShell
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
 
How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7
 
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuHow To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on Ubuntu
 
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoWindows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive Info
 
How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7
 
Windows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopWindows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loop
 
How To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsHow To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional Statements
 
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterHow To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
 
How To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueHow To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter Value
 
How To Create PowerShell Function
How To Create PowerShell FunctionHow To Create PowerShell Function
How To Create PowerShell Function
 
How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7
 
How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7
 
How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7
 

Recently uploaded

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Recently uploaded (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

How To Install Self Signed Certificate and Configure ELB for HTTPS Listener on AWS – SelfSigned Certificate

  • 1. How To Configure ELB for HTTPS Listener – SelfSigned Certificate Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Pre-Requisites ...............................................................................................................................................1 Create – SSL Certificate.................................................................................................................................1 Create RSA Key File ...................................................................................................................................2 Create a CSR Key File.................................................................................................................................2 Create Certificate......................................................................................................................................3 Install – SSL Certificate..............................................................................................................................3 Configure Listener.....................................................................................................................................3 Edit Listener ..............................................................................................................................................4 Select Certificate.......................................................................................................................................4 Configure Certificate Information.............................................................................................................5 Create Listener..........................................................................................................................................6 Create Security Group...............................................................................................................................6 Configure Security.....................................................................................................................................7 ELB Security Group....................................................................................................................................7 Configure App Security Group ..................................................................................................................7 Validate App Server Inbound Rules ..........................................................................................................8 Configure Stickiness..................................................................................................................................8 Enable Stickiness...................................................................................................................................8 Enable LB Cookies .................................................................................................................................9 Enable LB Status....................................................................................................................................9
  • 2. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 1 | P a g e Overview The purpose of this guide is to configure Amazon AWS Load Balancer with 2 nodes (instance) and configure HTTPS Listener for Elastic Load Balancer (ELB). We will install and configure OpenSSL Certificate that’s is self-signed certificate and we would be configuring “RSA” based chippers. OpenSSL Certificate can be used for testing environments. OpenSSL (SelfSigned) certificate(s) should not be installed / configured for production environments. To secure the environment, we will create a security group for ELB. We would also need to configure stickiness if the request has been process from same node. It’s mandatory to enable it, if the application session replication is not supported. Amazon ELB supports round-robin (rr) method of Load Balancing. The main purpose of load balancer is provide high availability. Applies To  Amazon EC2 Instance  Windows 2012 Server  Security Group for communication between ELB and application instances Pre-Requisites  A minimum of 2 EC2 instances have to be running in order to configure ELB.  Common Name (ServerName)  OpenSSL files  Private key file in pem encoded format  Public key certificate file in pem encoded format  A http listener is already configured and working Create – SSL Certificate There is 3 step process to generate a SSL certificate. 1) Generate RSA Key File 2) Create CSR (Certificate Signing Request) file. 3) Create SSL Certificate
  • 3. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 2 | P a g e Create RSA Key File First and foremost thing is the generate SSL certificate, is to generate RSA based chipper key generation, to generate the pem encoded format RSA key file with 2048 encryption bits, run the command; for easier identification we will name the file prefixing it as “-key” for the output file. openssl genrsa -out reservopia-key.pem 2048 Create a CSR Key File Next step is to create the CSR (Certificate signing Request) file which is also pem encoded format CSR file with the encryption algorithm to create CSR file, run the command; for easier identification we will name the file prefixing it as “csr” for the output file. Also you need to pass the RSA key file that was generated in the earlier step. We will not set challenge password for the certificate. openssl req -sha256 -new -key reservopia-key.pem -out reservopiacsr.pem
  • 4. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 3 | P a g e Create Certificate Finally, we will create the certificate in a pem encoded format; for easier identification of the file we will name the file prefixing “-certificate” for the output file. You would also need to pass the “csr” and “-key” files for creating the certificate. Argument Parameter Passed Comments X509 NA Self Signed Certificate -days 365 Certificate Validity in Days -in reservopiacsr.pem Input Certificate Sign Request -signkey reservopia-key.pem RSA key File -out reservopia-certificate.pem Output Filename openssl x509 -req -days 365 -in reservopiacsr.pem -signkey reservopia-key.pem -out reservopia- certificate.pem Install – SSL Certificate Next step, after creating the certificate, you have to install it on the ELB HTTPS Listener port. Alternatively, you can also perform the certificate installation via AWS CLI. Configure Listener Click on the “Load Balancers” and choose the Load Balancer Name where in you intend to install the created SSL certificate. Then click on “Listeners” tab and click on “Edit” button.
  • 5. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 4 | P a g e Edit Listener Next step is to add the listener to add a new listener, click on “Add” button to add a new listener, configure listener according to the below table and click on “Change” option; Listener Description Option Load Balancer Protocol HTTPS (Secure HTTP) Load Balancer Port 443 Instance Port 80 Cipher N/A (Not Configured) SSL Certificate Change Select Certificate Next step is to choose “Certificate Type”, since we are deploying the certificate for testing environment, choose the option “Upload a new SSL certificate to AWS Identity and Access Management (IAM)”.
  • 6. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 5 | P a g e Configure Certificate Information Next step is to configure the certificate information in the respective fields; Open the respective files in a notepad, copy the contents of the file and paste it into the appropriate fields and click on “Save” button. Certificate Filed Information Certificate Name:* Customizable or set it as Application Name Private Key:* RSA Key file contents “reservopia-key.pem” Public Key Certificate:* Public Key file contents “reservopia-certificate.pem”. Certificate Chain: Optional
  • 7. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 6 | P a g e Create Listener After validating the certificate, certificate will be install on the Elastic Load Balancer and the listener is created automatically. Create – ELB Security Group After installing the certificate on ELB, next step is to secure the servers. In order to secure the environment we will create a new security group for ELB for communicating between the application servers for http and https access only. Create Security Group In order to create a new security group click on “Security Groups” and click on “Create Security Group”; Set security group name, description and most important choose the VPC wherein the ELB has been configured. Add “Inbound” rules for http and https and source as anywhere and then click on “Create” button.
  • 8. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 7 | P a g e Configure Security After configuring the inbound rules on the ELB security group, click on “Security” tab of the ELB and then click on “Edit” button. ELB Security Group Next step is to choose the security group that has been configured for “ELB” and click on “Save” button. Configure App Security Group In order to secure the application servers, we will configure inbound rules of application security group such that communication between ELB and application servers only is permitted.
  • 9. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 8 | P a g e Validate App Server Inbound Rules After saving, validate the configured inbound rules and ensure the name of the “ELB Security group” in the source. Configure Stickiness Stickiness is one of the most important configuration when the application does not know as to how to handle sessions more than one server in a pool of servers, since the request would be sent in a round robin method unless stickiness is enabled. Enable Stickiness By default stickiness is disabled. To enable it click on “Edit” link.
  • 10. How To Configure ELB for HTTPS Listener – SelfSigned Certificate 9 | P a g e Enable LB Cookies In order to stickiness, cookie information has to be coupled with network packet; if application is able not able to session replication choose the option “Enable Load Balancer Generated Cookie Stickiness” option and leave blank “Expiration Period” and then click on “Save” button. Enable LB Status After saving, current stickiness configured will be displayed in the ELB description tab.