Install SSL certificate from GoDaddy into an Amazon EC2 Ubuntu instance

Below are the steps to install SSL certificate from GoDaddy into an Amazon EC2 instance based on my experience. My server is Ubuntu 18.04 LTS. After you had purchased the SSL certificate, you need to supply the CSR (Certificate Signing Request) from your server. To do that, access your server via PuTTY or SSH and use this code:

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr

Replace “server” with your preferred name.
Open the server.csr and paste it into GoDaddy.
Follow the steps in GoDaddy to validate your domain name after you supply them the CSR.
Once validated, download your certificate files from GoDaddy.
Upload the files in your /etc/ssl/certs/ folder.
Move the server.key you had created earlier into /etc/ssl/private/ folder

Open /etc/apache2/sites-available/default-ssl.conf via vim Add these lines:

SSLEngine on
SSLCertificateFile /etc/ssl/certs/primary.crt
SSLCertificateKeyFile /etc/ssl/certs/private.key
SSLCertificateChainFile /etc/ssl/certs/intermediate.crt

replace the crt and key files with your files, chain file is the gd-bundle.crt from GoDaddy. Save the file.

Enable SSL Mod
sudo a2enmod ssl

Restart Apache
sudo service apache2 restart

Try to check your SSL if working alright on SSL checker tools page like

[image grab from]