Install SSL in AWS EC2 documents - apache

I have an EC2 instance with Apache and Tomcat servers. And I want to add SSL certificates for https access. Since I am new to server technologies, can anybody help me on this? Where do I configure SSL certificates?

Setup a Elastic Load Balancer (ELB) in front of your EC2 instance you can upload ssl certs to these
http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html
ELB: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/gs-ec2classic.html

Related

How to Change http into https in Amazon Ec2 through LetsEncrypt

I have an ec2 instance in amazon ec2. In that i have php files and mysql database. I am connecting my database using ec2 by following
http://18.37.220.172/phpInsert.php. But i feel insecure. So i want to change into secure site.
Like this https://18.37.220.172/phpInsert.php
I have installed letsencrypt ssl certificate in ec2 instance. but http is not changed into https.
How can i enable ssl in ec2 instance. i dont have any domain name.
so i want to convert my ip address https://18.37.220.172. Is it possible.
What i have to do ?
letsencrypt does not support generating certificates without a domain name: https://community.letsencrypt.org/t/certificate-for-public-ip-without-domain-name/6082
It is possible to purchase certificates for IP addresses, but not from Let’s Encrypt. Let’s Encrypt may offer IP address certificates in the future, but as of September 2018 we do not.

Cloudflare SSL on Ec2

I bought SSL certificate from cloudflare. Now I need to activate https on my ec2 instance where I have MEAN stack application running with nginx.Also I've added cloudflare nameservers to my godaddy dns.The problem is that cloudflare didn't send me any certificates or keys, which I can attach to my nginx configs. Please tell me what is my next steps.Thanks for attention and for help.
SSL from cloudflare will terminate at Cloudflare itself. Either you can send http request from cloudflare to your ec2, or you can setup a selfsigned certificate on your ec2 and pin it at cloudflare or install letsencrypt on your ec2 for ssl.
Enduser -HTTPS-> cloudflare -HTTP-> your ec2

Transfer SSL certificates from GoDaddy to AWS (EC2-APACHE)

i want to transfer my GoDaddy website hosting to EC2 apache. But i do have a confusion that how do i transfer SSL certificates from GoDaddy to EC2 apache.
Do i need to export certificates from GoDaddy?
How to i install those certificates on apache, including priavte key?
Thanks,
Saqib
There is no such thing as transfer SSL certificates when it comes to Apache.
You need to configure Apache server with SSL.
You can refer to the below blog post on how to do so:
https://www.digicert.com/ssl-certificate-installation-apache.htm

Amazon AWS - EC2 - Load Balancer (ELM) & SSL Questions

Background:
I had 1 instance created for EC2
I had my domain pointing to this instance
I had SSL installed for this instance (things were running great)
Furthermore:
I opted to create a second instance (using custom AMI from first instance)
I create a load balancer (things were working great -- from what i can tell...)
Question:
Why do I need to install the SSL certificate on the load balancer when it seems to have already been working?
I would presume when you say load balancer, you are refering to AWS ELB. If this is no the case, then disregard my answer.
Well the Best practice is to install SSL certs on load balancer and do the SSL termination there. Let the load balacner do SSL encryption/decryption so that your web server can do what they do the BEST...serving hte web pages.
Why do I need to install the SSL certificate on the load balancer
Now, technically You set is fine and you don't have to install SSL on load balancer. But then you have to use TCP Load Balancing feature of AWS ELB where in ELB will simply accespt traffic on 443 and will forward it to Web servers on 443. And then let your web servers do the SSL work.
I think this what you are looking for.

ElasticBeanstalk GoDaddy and SSL

I am attempting to get my domain (assetfarm.com.au) to use SSL. I have created a certificate and uploaded it to IAM. I associated it with my ElasticBeanstalk configuration.
I am also attempting to use Route 53 for my domain. Here are my current settings:
I'm using a self-signed certificate just to check that the issue wasn't with the certificate GoDaddy generated. Despite following the instructions on Amazon step-by-step, I am still unable to visit https://www.assetfarm.com.au or https://assetfarm.com.au. I can't even visit https with the elastic beanstalk or load balancer URL.
Please check your ELB Security Group for Port 443.
For some new AWS accounts, you may need to open Port 443 manually.