How To Issue SSL certificate and Fix The “Not Secure” Warning

An SSL certificate is used to establish an encrypted connection between a server and a client, like a web server and a browser, ensuring secure communication.

SSL certificates protect sensitive information from being intercepted by hackers or malicious actors.

1/ Install SSL Certificate

Your cPanel account at Yegara Host comes with a free SSL. The certificates are automatically installed for you within an hour or two. But some people immediately need an SSL certificate before the auto-installer runs, you can follow the steps below to install it immediately

a. In your cPanel go to SSL/TLS Status under Security

b. Click on RUN AutoSSL

This may take a few minutes to run, at the end you will have an SSL certificate for your domain.

2/ Force your site To use HTTPS

Now that you have a valid SSL issued for your domain, you will have to force your site to use HTTPS. Most CMS including WordPress has a built-in way to handle that.

Option 1: WordPress

a. Login to your WordPress Dashboard

b. go to Settings » General page.

c. update your WordPress and site URL address by replacing http with https.

d. Then click on “Save Changes

Option 2: Force SSL In Your .htaccess File

As a general rule of thumb, your .htaccess file should be the main place to set redirects. Add the below code to your .htaccess file and your site should start to use HTTPS

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

Option 3: cPanel Built-in Force HTTPS

cPanel has recently added a feature that will allow you to do that easier. By using this option the redirection is built into the domain’s vhost configuration.

a. In your cPanel open  Domains menu

b- click the slider switch under the Force HTTPS Redirect column next to the domain you want to enable.

That is it, Now your site should be using HTTPS .

You are Done!

If you are not able to issue SSL Certificates , make sure that your domain name is pointing to the cPanel.

  • If you are using cloudflare , the SSL Certificate will be automatically issues for you by cloudflare . cPanel will not issue additional certificate.

Comments

9 responses to “How To Issue SSL certificate and Fix The “Not Secure” Warning”

  1. Kirubel Avatar
    Kirubel

    Do I need to Do all 3 steps to Force Https ?

  2. No, you just need to DO one.
    If one of the steps doesn’t work for you, you can try using the other mentioned options.

  3. Tilahun Avatar
    Tilahun

    I followed the Steps But It is Now Working.

  4. If you are testing it from the same browser, it might be your browser is serving you from a cache. Try it from a different Browser or device after making the changes

  5. This website is the perfect curated guide to owning a cpanel/wordpress website. Thank you for EXISTING!!

  6. thanks bro I checked all option are worked good work

  7. I want to express my heartfelt gratitude for your outstanding customer service! I highly recommend Yegara to everyone, as they consistently deliver top-notch support and are always number one in my experience.

  8.  Avatar
    Anonymous

    Thanks, yegara you are the best

  9. Done ! thank you so much for your convenience

Leave a Reply

Your email address will not be published. Required fields are marked *