February 2020
Intermediate to advanced
440 pages
13h 51m
English
We can enable HTTPS on an Amazon Linux 2 EC2 instance as follows:
sudo yum install -y mod_ssl
If the installation is successful, then the /etc/httpd/conf.d/ssl.conf and /etc/pki/tls/certs/make-dummy-cert files will be created in our EC2 instance.
We should be able to see entries for Server Certificate and Server Private Key in the ssl.conf file:

Take note of the name and location of the server certificate, which is /etc/pki/tls/certs/localhost.crt.
Read now
Unlock full access