As we learned setting up an absolutely free blog in last article (Please check it here, if you have missed it), we will now learn how to set up an absolutely free SSL certificate to that.
If you have followed my last article on setting up a blog, you might remember, we have downloaded a key which basically serves the purpose of password. Let us explore, how to use that key and log in into our virual machine and manage it completely.
So we will use PUTTY application for setting up SSL certificate.
Please click on this link to download PuTTY.
Convert Your Private Key Using PuTTYgen
So as we have downloaded Putty, PuttyGen will automatically follow it.
The key which we have downloaded while creating the blog was of .pem format and because Putty uses .ppk extension, we will have to convert this .pem file to .ppk.
- From the Start menu, choose All Programs, PuTTY, PuTTYgen.
- You will find so many types under Type of key to generate, select RSA or SSH-2 RSA if you have older version of PuTTYgen.
- Select Load. Click on the dropdown next to ‘File name’ and select ‘All files (*.*) and then locate .pem key pair file from your computer.
- PuTTYgen will then show a pop up saying that, ‘.pem file was successfully imported’. Click OK.
- Select Save private key to save the key in .ppk format. You can omit the warning which PuTTYgen displays about saving the key without a passphrase. Choose Yes.
- Give a name to the .ppk file which PuTTYgen has generated and choose Save.
- You now have a private .ppk file to launch your instance using Putty.
Connect to your instance using PuTTY
Once we have generated the .ppk file, we will be able to connect to our AWS AMI. Here is what you need to:
- Open Putty from Start Menu.
- Under Category panel, select Session and complete the following fields:
- In the Host Name box, just type bitnami@ElasticIP. ElasticIP is the IP which we have allocated to our AWS instance.
- Port value will be 22.
- Under Connection type, select SSH.
- In the Category pane, expand Connection, expand SSH, and then choose Auth.
- Browse the .ppk file and click on open.
- Choose Yes. A window opens and you are connected to your instance.
Note: When you are connecting first time to your instance using Putty, you may see a dialog box with security alert. This alert will basically ask whether you trust the host you are connecting to. Choose Yes.
Now you are connected to your virtual machine via Putty.
Set up Let’s Encrypt Certificate to your Bitnami WordPress AMI
To launch the Bitnami HTTPS Configuration Tool, execute the following command and follow the prompts:
If the above approach does not work, it may be probably because your Bitnami image does not include the auto-configuration script or /opt/bitnami/letsencrypt/ directory. But don’t worry, you can still install the certificates manually. Just follow the below link which has step by step guide to install the certificate manually.
If there are any challenges, you can please ask them in the comment section.
Aside from being an engineer, I am a software developer, an enthusiastic musician, a regular reader and a hobbyist writer. I love traveling, exploring new places and, of course, playing games (all sorts).