spencerlepine / woofer

Dating app for pets - a full stack MERN project. Complete with CI/CD pipeline w/ Jest, GitHub Actions, Docker Hub, and AWS EC2
https://youtu.be/aiJhCoZRc78
2 stars 1 forks source link

EC2 https enabling #55

Closed spencerlepine closed 2 years ago

spencerlepine commented 2 years ago

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html

Connect to the EC2, and set up a cert:

# SSL/TSL SETUP
sudo yum install -y mod_ssl
cd /etc/pki/tls/certs
sudo ./make-dummy-cert localhost.crt
sudo openssl genrsa -out custom.key
sudo chown root:root custom.key
sudo chmod 600 custom.key
sudo openssl req -new -key custom.key -out csr.pem