To secure your site or server with HTTPS, for this, you have to install Let’s Encrypt, then set up the free SSL certificate for your site or server on your AWS EC2 instance with Ubuntu
Read More How to Install SSL Certificate on AWS EC2 with Ubuntu NGINX