Enabling SSL For AWS EC2 Instances
Enabling SSL For AWS EC2 Instances
ServerAlias “www.fernandoenad.tk”
</VirtualHost>
12. I then installed the Certbot packages and dependencies by running the $ sudo yum
install -y certbot python2-certbot-apache command and ran it thereafter using
the $ sudo certbot command.
13. The terminal then prompted me to input an email address to be used for urgent
renewal and security notices. After inputting [email protected] for the email, I then
pressed the enter key.
14. The terminal then prompted me to accept the Terms of Service so I then went ahead
and responded “A” (for Accept) and hit the Enter key thereafter. It was then followed
by another prompt to include me in the mailing list to which I responded “Y” (for Yes)
and then hitting the Enter key.
15. Certbot then displayed the Common Name and Subject Alternative Name that I
provided in the VirtualHost block when I updated the /etc/httpd/conf/httpd.conf file. It
prompted me to select as to which the HTTPS service be activated for. I immediately
hit the Enter key to select both entries instead of just selecting one.
16. All that followed are automated actions such as obtaining a new certificate, performing
challenges, waiting for verifications, cleaning up challenges, creating SSL vhost,
deploying certificate for the Common Name, enabling the site, and deploying the
certificate for the Subject Alternative Name. I was then prompted to whether redirect
the HTTP traffic to HTTPS to which I eagerly responded with “1” which means I want to
keep the HTTP access.
17. Certbot then completed the configuration of Apache and further reported the success
of the action.
18. I then went ahead and tried accessing my CV site using HTTPS and it loaded with no
certificate error prompts already.