Share this

If you have already created and installed a WordPress website on AWS Server by following the setup process in our previous WordPress Setup Guide blogs, then this is our final step in our WordPress website to set up an SSL (HTTPS) Certificate and removes the “Not Secure” Text.

What is SSL and Why do I need it for my Website?

SSL Stands for Secure Socket Layer. SSL is basically a certificate for your website that allows HTTPS on your Website Address Bar.

The actual work of the SSL Certificate is to encrypt the traffic between the User and the Website. It protects the data transmission/communication in transit. The encryption means it will convert your data into a code to prevent and block unwanted access to your data.

For Example, you and your friend have a secret communication language that no one actually understands except you two. This way you can pass your message to your friend in a secret language and other people will not be able to decode your message. Website SSL works in the same way, you can share your sensitive data between the user and the server and avoid or block and the third man in the middle. If you want to have more visitors to your website then you definitely need to have an SSL certificate on your website. 

Another Example: You are buying some stuff online or an E-Commerce Store that does not have an SSL Certificate on that browser and it shows a red symbol with a text (“Not Secure).

You want to purchase some item and enter your sensitive Debit/ Credit Card Details, this can enable hackers(man in the middle) to attack and access your Bank details from the Not-Secure site and you will have a lot of trouble.  

These are the reasons why you need to have an SSL Certificate for your website and should be renewed every year to keep your business and visitors’ data safe.

Step 1: Login/Sign In to your AWS Account

AWS-Wordpress-hosting-a1webbuilder-1-1-min
AWS-Wordpress-hosting-a1webbuilder-2-min

Sign in to your AWS Cloud server with the IAM user credentials. This will ask for your Account Id, IAM Username, and Password. Fill up your details and this will open your AWS Cloud Service Dashboard.

Step 2:  Change your AWS Server Location

AWS-Wordpress-hosting-a1webbuilder-4-min

On the top right corner of the AWS dashboard click on the location and select the AWS server closest to you or optionally select any other server for your preference. This gives you an advantage since it will reduce the server response latency when you are hosting your website.

Step 3:  Select Ec2 Instance for your WordPress website

AWS-Wordpress-hosting-a1webbuilder-5-min

On the top bar there is a search field, now type EC2 in this box and it will automatically filter EC2 from the given list. Select the EC2 instance, this will open a new dashboard where you can create/set up, manage, delete your EC2 instances.

Step 4:  Download and Install Putty on your computer

For this, you need to download and install PuTTy on your computer.

You can download PuTTy from this URL link: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Once you install PuTTy On Windows Desktop, in the search field  type puttygen

Keep the parameters of PuTTygen as Type RSA and Number of Bits generated as 2048 then click Load Button 

Save the file as .ppk and save it.

Now go to desktop and search for PuTTy then open putty.

You need to first copy the public IP Address from the selected WordPress EC2 instance, after you copy the instance Public IP Address go to PuTTy open session from the left panel and paste the Public IP address. Keep the PORT as 22.

Click on Data from the left panel. Auto-login Username as “bitnami” and Terminal-type-string as “xterm” and Terminal speed as “38400.38400

Under the SSH click, AUTH inside this tab click open browse tab, locate the .ppk file that you created using PuTTygen and open this file.

Go back to the session tab inside putty and make sure all the settings we did remains the same. Now click on the Open button this will securely SSH(connect) to your EC2 instances.

Once your command prompt is open type these simple command to add SSL Certificate

  • sudo /opt/bitnami/bncert-tool

Once you enter this command your SSL(HTTPS) setup by Bitnami will start its process. In this step, it will ask you to enter the website domain name for which you want SSL to be activated. Simply type your correct domain name in the command line which you managed using the AWS route53 service. In my case its “demowebsample.online”  

Please enter your correct domain name with proper spelling and all letters should be in lower case

It will give a prompt to include the domain name, simply click “Yes” and enter.

In the next prompt, it will ask for redirection of your website from HTTP to HTTPS, press “y” and enter to allow redirection to HTTPS.

In the next prompt, it will ask for redirection of a non-www website to www, press “y” and enter to allow redirection to www.

In the next prompt, it will ask for redirection of www website to non-www, press “N” and enter because we do not want it to open the website without www

In this prompt, it will ask our permission to restart the server to apply SSL and redirection set up on the domain name that you entered. Press y and it will complete the process.

Coming to our last prompt it will ask for your email address, you can enter your email address to associate it with SSL Certificate and finish up with the setup.

In just a few minutes  your SSL setup will be applied to your WordPress domain and you can view  your website with SSL Certificate  that is starting with “HTTPS://www

We as a team at A1webbuilder are highly skilled and qualified to develop and protect your website with a premium facility and quality service including the industry’s standard. We can deliver your website within your time frame and provide the best result. Feel free to discuss your new project or business goal,  call us on +91 7208 328 691, contact us or drop us a mail at info@a1webbuilder.com.

Share this