Member-only story
Configure SSL on AWS EC2 Ubuntu Instance
Oct 30, 2022
In this article, I hope I can show you how to protect your application hosted in AWS EC2 (or any server) with an SSL certificate.
Using OpenSSL you can easily create these certificates.
sudo mkdir /etc/ssl/private
sudo chmod 700 /etc/ssl/private
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
You will be asked a series of questions, you can just hit enter for everyone, this part is not covered for this tutorial and it’s not mandatory.
And that’s it. If you access your application with HTTPS (using your domain) it will successfully reach your backend on port 9000. Simple and secure.