How To Install Free Ssl Certificate In Wordpress

This article will see how to set up a Free SSL Certificate for Bitnami WordPress or WordPress on Google Cloud Hosting Easily.

  1. Free Ssl Certificate Generator

Download the plugin from this page. Upload the plugin archive to the /wp-content/plugins/ directory and extract it. Go to the ‘Plugins’ page in your WordPress backend and activate ‘Auto-Install Free SSL’. Go to the “After activation” section below.

In this process need some Linux command, But don’t fear it because I have to note down below all command line that needs our setting up procedures.

Everyone knows that Google is the most prominent Internet Company in the world. Google provides hosting and other cloud services for consumers. We have already seen or read in our previous article “How To Host A WordPress Website On Google Cloud.”

Table Of Contents

Connect the VM instances with SSH

Click Compute Engine then select VM instances page for access your WordPress installed VM.

After opening the VM instances, we will connect our WordPress VM with SSH. So we can use the command line and quickly set up the SSL certificate on our website.

Generate the SSL Certificate with Commands

When we have connected with SSH, we will give a command to generate the SSL Certificate.

For example, if your email address is [email protected] and your domain is example.com or www.example.com, then your certificate generating command will be this:

Configuration of the SSL Certificates.

In this step, we will configure our SSL certificate after giving the command above note down. After giving the SSL certificate issuing command, the compute engine will prompt some YES or NO authorization. I will prefer to type the Y and hit enter, like the pictures below.

Configuration of HTTPS Redirection

After generating the SSL certificate, we will configure the redirection of HTTP traffic to HTTPS traffic.

So in this step, we need one more command:

After this command, there will be open a new page like in the picture below.

Now we will add some line of code between these two lines sowing above the picture. The code is:

After adding these three code lines, we will save the bitnami.confi by using keyboard keys CTRL+X then Y, and then click Enter to save.

Important Note: These three lines of code in the last line used “https://www.example.com” change as it is your domain name.

Now you will see the bitnami.confi file like this after adding these three lines of code.

Now everything is done, we are going to restart our apache server for all these changes. So our last step is to restart Apache Server.

Restart Apache Server

Use the following command to restart apache server:

There we go, our SSL certificate installation is complete.

Wrapping Up

If you have a WordPress instance on Google Cloud and want to add an SSL certificate for your website, you can follow the given steps.

By-the-way, you can use other methods, but this method is particularly for Bitnami WordPress instance.

If your WordPress website is hosted a shared hosting and using cPanel, you can install the free SSL certificate on cPanel.

If you have any issues during installation or have questions about the SSL certificate, please leave comments in the comment section. I am willing to help you.

Recommended Articles

  • Remove Bitnami WordPress Banner.

Description

Auto-Install Free SSL

‘Auto-Install Free SSL’ automatically issues, renews and installs Let’s Encrypt™ Free SSL Certificate on WordPress website & also on all the websites hosted in a cPanel server.

This WordPress plugin works in cPanel shared hosting. You don’t need to have coding experience or server admin experience to set it up. Root access is NOT required. All you need is 8 minutes only. Install it, provide a few required information, and set up the daily cron job. You can even set up the cron job from this plugin with a single click. That’s it!

This WordPress plugin works on other web hosting control panels also, except for the auto-installation feature.

60,000+ downloads

Key Features

  • Automatic Free SSL Certificate issue, renewal, and installation in cPanel shared hosting. <- FREE of cost
  • One-click Force SSL activation, i.e., HTTPS redirect, fix insecure links and mixed content warning, display the padlock in the address bar with only one click. <- FREE of cost

Features in detail

  • ‘Auto-Install Free SSL’ works not only on your WordPress website’s domain but on all the websites hosted on your cPanel / web hosting.
  • This WordPress plugin is capable of issuing WildCard SSL certificate for free!
  • If you have cPanel shared hosting, the plugin will install free SSL certificate automatically.
  • Choose the interval to renew SSL certificates. The default is 30 days before the expiry.
  • This WordPress plugin saves the SSL certificates and private keys files above the document root (i.e., ‘public_html’).
  • You have the option to set the directory name in which this plugin saves SSL certificates and private keys.
  • Set the key length of SSL certificate as per your wish. The default value is 2048 bytes/bit.
  • The plugin saves the sensitive information (password/API secret) in your WordPress database encrypting with the open SSL.
  • There is an option to create a daily cron job with one click — no need to log in your web hosting control panel.
  • Do you need to issue wildcard SSL? You get four DNS service providers for which the plugin sets DNS TXT record automatically: Cloudflare, Godaddy, Namecheap, and cPanel. If your DNS provider is not supported, you have option to set the DNS TXT record yourself. At the right time, this WordPress plugin sends an email that provides the required data to set the DNS TXT record.
  • If the WordPress plugin automatically sets the DNS TXT record, it waits for 2 minutes before it sends challenges to the API of Let’s Encrypt for verification of your domains. If your DNS provider takes more than 2 minutes to propagate the TXT records, you have the option to make the plugin wait beyond two minutes interval.
  • If you set the DNS TXT record manually, the plugin waits until the TXT record propagation complete. Some web hosting company may terminate the cron job if the DNS service provider takes longer to complete propagation. In that situation, you may wait until the next run of the cron job or choose non-wildcard SSL for each sub-domain.
  • If your website currently doesn’t have an SSL certificate installed, this WordPress plugin provides an option to generate one free SSL certificate even before you configure the plugin. You get this option when you try to provide cPanel password or DNS API credentials over an insecure connection. So, no need to enter sensitive credentials on an insecure page.
  • You can revoke any SSL certificate or change your Let’s Encrypt™ account key at any time.
  • Fix insecure links & mixed content warnings and display the padlock with a single click.
  • One-click revert to HTTP if required.

Minimum System Requirements

  • Linux hosting (windows hosting is not supported)
  • WordPress 4.1
  • PHP 5.6
  • OpenSSL extension
  • Curl extension
  • PHP directive allow_url_fopen = On
  • For the automatic SSL certificate installation feature, your cPanel need to have the SSL installation feature enabled.

Case 1: This WordPress plugin needs cPanel API to auto-install the SSL certificate. If your web hosting control panel is any other than cPanel, the client can’t install SSL certificate automatically. In that case, you can install the issued free SSL manually.

Case 2: Do you have cPanel, but the SSL certificate installation feature is DISABLED? You need to request your web hosting service provider to enable the feature, or you may contact them to install the free SSL issued by this plugin.

For any of the case 1 and 2, all other processes are automated. The plugin sends an automated email in the event of issue/renewal of free SSL certificate. The email tells you the path details of the SSL certificate, private key, and CA bundle. You need to install the SSL yourself (case 1) manually or with the help of your web hosting provider (case 2).

Installation

Popular and most easy method

  1. Click ‘Plugins > Add New’.
  2. Type this keyword in the search box: ‘Auto-Install Free SSL’.
  3. Once you found the plugin click ‘Install Now’ button.
  4. Click ‘Activate Plugin’.
  5. Go to the “After activation” section below.

Manually upload

  1. Download the plugin from this page.
  2. Upload the plugin archive to the /wp-content/plugins/ directory and extract it.
  3. Go to the ‘Plugins’ page in your WordPress backend and activate ‘Auto-Install Free SSL’.
  4. Go to the “After activation” section below.

After Activation

  1. After activating the plugin you see the ‘Settings’ link. Click on it.
  2. You get the dashboard of the plugin. You can also get this page from the admin menu at the bottom-left (below the default ‘settings’ menu) of your WordPress backend.
  3. You get the ‘Basic Settings’ option only, at this point. Click it and provide a little information with the form.
  4. Then you get other buttons like cPanel Settings, Exclude Domains, Add Cron Job. Click these buttons and fill in all the required information. Add the cron job.
  5. On the first run of the cron job, the plugin issues and installs an SSL certificate automatically. You receive an email for the same.
  6. Then go to the plugin’s dashboard. Click the ‘Activate Force HTTPS’ button (this button will be visible only after the plugin issue an SSL certificate). This one-click makes sure your website has no mixed content warning. Now the padlock appears in the browser’s address bar.
  7. Congratulations! You’re all set.

Support and Report a Bug

Please check the existing topics in the WordPress support forum before creating a new topic for support or reporting a bug.

Credits

  • I developed this plugin based on the PHP client/app ‘FreeSSL.tech Auto’, which I developed with a massive rewrite of Lescript.

Let’s Encrypt™ is a trademark of the Internet Security Research Group. All rights reserved.

FAQ

Why do you need my cPanel password when others Let’s Encrypt clients don’t?

cPanel username and password is required to install the free SSL certificate automatically with the cPanel API. Let’s Encrypt SSL’s lifetime is 90 days. You need to get and install another SSL certificate before the expiration of the current SSL. If you provide your cPanel username and password, this plugin will do this repeated job automatically. All your credentials remain safe in your database. Moreover, ‘Auto-Install Free SSL’ encrypts the password before saving in your database.

All other Let’s Encrypt clients who auto-install free SSL certificate, needs root access, which is a higher privilege than the cPanel user. In shared hosting, the root access belongs to the web hosting company. So those clients will not work on shared hosting.

Does this WordPress plugin send the cPanel username or cPanel password to your server or to Let’s Encrypt?

We or Let’s Encrypt don’t collect any credentials. This plugin’s source code is open for audit. The team WordPress approved it after the audit. Please feel free to audit yourself too.

If you still hesitate for the password, please set the cPanel option to NO (in basic settings). You still get the SSL certificate and automated renewal. But you need to install the generated SSL manually. You need to provide all your domain information manually too.

Free Ssl Certificate Generator

I installed ‘Auto-Install Free SSL’ and did everything. But the SSL certificate was not issued. What should I do?

Please click the ‘Cron Jobs’ option in your cPanel. You’ll get the ‘Cron Jobs’ page. Now look for the following text under ‘Current Cron Jobs’ section:
wp-content/plugins/auto-install-free-ssl/cron.php

Case 1: If you found this line, you have created the cron job successfully. This cron job will keep the plugin’s daily job running. Now please wait 24 hours (max). You’ll get an email notification that will tell you that the SSL certificate issued and installed automatically.

Free

Case 2: If you don’t see that text, no cron job was added. For this reason, no SSL certificate was issued. Please create a cron job manually.

How do I create the cron job?

‘Auto-Install Free SSL’ has an option to add the cron job with one click from your WordPress dashboard.

I received the confirmation email but didn’t receive the cron output. Why?

Make sure you have provided your email in the ‘Cron Email’ section of the Cron Jobs page of cPanel.

Reviews

The instruction where easy to follow. Highly recommend it.