Setup Certificate
Shows how to obtain and verify an SSL certificate for a domain using Certbot.
Create Route 53 URL from your domain e.g. caesar.devnet.romeprotocol.xyz to point to EC2 server IP.
Use your own email address and domain name when requesting the certificate.
Make sure that ports HTTP (80) and HTTPS (443) are open.
sudo apt install -y nginx
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --nginx -n -m [email protected] --agree-tos --domains caesar.devnet.romeprotocol.xyz
sudo nginx -s stop
sudo ls /etc/letsencrypt/live/caesar.devnet.romeprotocol.xyz
# Ensure that fullchain.pem and privkey.pem files are located here
Last updated
Was this helpful?