DEV Community

Cover image for Configure SSL Certificate — AWS Elastic Beanstalk (Single Instance)

Configure SSL Certificate — AWS Elastic Beanstalk (Single Instance)

Haseeb Burki on October 04, 2019

SSL secures data transfer between client and server-side. Not only that it also increases your website’s Google ranking, so it's safe to say that S...
Collapse
 
https_india profile image
Https

Hasseb, nice to see your effort to help AWS lovers to deal with SSL certs. I have also come across a SSL certificate installation service provider (ssl.support) who helps in getting your ssl installed on server, specially for them who are not tech savvy.

Collapse
 
hzburki profile image
Haseeb Burki

Cool, I'll give it a look soon! :D

Collapse
 
aschwad profile image
ASchwad

Hi Haseeb!
Great article, is there also a way on how to provide the certificates directly to the instance, without using s3? How can i allow this specific instance and nobody else to access the certificate files? Thanks in advance!
Alex

Collapse
 
hzburki profile image
Haseeb Burki

You don't have to use S3, all you need to do is use the files that Let's Encrypt creates. It doesn't matter where you put them. In fact, you can put them on the server you are using and give the path to the file .elasticbeanstalk config file.

I have been looking for a way to automate this process further so we don't have to renew the domain every 90 days. Take a look at this post if you are interested

Collapse
 
huguesgauthier profile image
Hugues Gauthier

Yum does not have mod24_ssl available for installation

Collapse
 
paticopro profile image
Patico

There is a workaround for getting certbot at Amazon Linux 2:

sudo wget -r --no-parent -A 'epel-release-*.rpm' http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/
sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm
sudo yum-config-manager --enable epel*
sudo yum repolist all
sudo yum install -y certbot
Enter fullscreen mode Exit fullscreen mode

Found it at Amazon docs: docs.aws.amazon.com/AWSEC2/latest/...