0,00 USD

No products in the cart.

Monday, April 12, 2021

Sloth Gets Secure (Adding AN SSL Certificate to Your Website)

Home » WordPress and Blogging » Sloth Makes a Blog » Blog Basics » You Have Installed WordPress What Now » Sloth Gets Secure (Adding AN SSL Certificate to Your Website)
0
(0)

Now that Zip has added some structure to his website with some pages and categories, we’re going to go over adding an SSL certificate to his website.

What is SSL?

SSL stands for Secure Sockets Layer. We’re not going to go into the technical aspects of how SSL works, but it adds security to your website.

If Zip looks at his browser, he can see that there’s a little unlocked padlock symbol and the words, “Not Secure.” This bugs me and I’d install an SSL certificate just to get rid of that!

Fortunately, most web hosting providers will provide you with a free “Let’s Encrypt” SSL certificate now, and it’s not too hard to install one.

So I Need SSL on My Website?

Yes, if you’re going to have an online store, a membership site, or otherwise collect private data. But even for other sites, SSL certificates are becoming standard. It’s nice to NOT have a “Not Secure,” warning for visitors to your website.

Adding SSL to Your WordPress Website

Let’s Encrypt SSL Certificate in CPanel

Zip’s going to install a free Let’s Encrypt SSL certificate to Slothverse.com through CPanel.

Time needed: 20 minutes.

Adding A Let’s Encrypt SSL Certificate in WordPress

  1. Log into CPanel and Click on Let’s Encrypt

  2. Install the Certificate

    Choose your domain and click “Install.”

  3. Check and See if Your SSL Certificate Has Installed

    Wait a few minutes and refresh the page and see if your certificate has installed. Most of the time, it’s pretty quick now, for some hosting providers it may take a bit longer.

    A note for Cloudflare users: If you already are using Cloudflare and are trying to install a Let’s Encrypt certificate, and your certificate will not install, try changing your SSL mode in Cloudflare to Flexible, try installing the certificate again. When it shows that it has been installed, switch it back to Full-Strict.

    In the photo below, you can see that the certificate is now active. If Zip checks the front end of his website, he’ll see that he now has a little closed lock symbol in the browser where the Not Secure warning used to be.

  4. Change Your Domain Name in Settings

    Go to Settings>General and change the beginning of the URL for your site from http:// to https:// and save. WordPress will probably log you out and you’ll need to log back in at this point.

  5. Check your website for any mixed content

    Check your website thoroughly. Zip sees that he’s getting a non-secure warning on his post. Read on below for more about that.

What if I Don’t Have CPanel?

Some managed hosting providers do not give you cPanel access. Usually, adding SSL on these hosts is pretty straightforward. Check their documentation and ask your hosting provider if you encounter any errors.

I had a client who had a very basic hosting plan but did have the option of a free SSL certificate. On this hosting provider, you could turn SSL on using a simple switch. My client had done this, but SSL still wasn’t enabled on her website.

For this, the Really Simple SSL plugin was extremely helpful in enabling that certificate on her website.

Mixed Content

When he looks at his website, Zip sees that his post is “not secure.”

He tries going to the dropdown under Action and HTTPS Settings in Let’s Encrypt and turning on “HTTPS Enforce.” This should enforce the SSL on all page on his website and redirect non-https pages to https.

Https in cpanel adding an ssl certificate

and then after that turning on “External Links Rewrite.” Sometimes, if you’ve loaded resources from other resources, thaat website doesn’t necessarily use SSL and your website will still show a non-secure warning or a mixed content error.

Turning this rule on should create a “rule” in a file called .htaccess which will tell WordPress to rewrite any non-http resources to https.

HTTPS rewrites in Cpanel adding an ssl certificate

But, guess what? He checks his post again and finds that this didn’t work.

Enforcing HTTPS and Rewriting Exernal Links in Siteground

Zip’s website is hosted on Siteground, so it came with their optimization plugin, SG Optimizer, pre-installed. That give him a couple of easy options for enforcing https.

Enabling SSL in Siteground Optimizer adding an ssl certificate

He switches on Enable HTTPS and Fix Insecure Content and IT WORKS! No more insecure warnings.

But What if I Don’t Have Siteground?

But you might not have Siteground, and I intend to make this series for beginners. You can install a plugin to do the same thing. Try the WP Enforce SSL plugin, or again, Really Simple SSL, but you may need to get the pro version to diagnose mixed content warnings.

Of course, you could add rules to your .htaccess file, but that’s beyond the scope of this beginning tutorial (we’ll save it for another post.)

And there are times when some of your files may not get changed to https://. You might need to use a plugin like https://wordpress.org/plugins/better-search-replace/ and do a search for http://yourdomain.com replacing it with https://yourdomain.com (and always do a test run first.)

But, right now, SSL on Slothverse.com seems to be working just fine!

Let’s get on to design and adding a theme next!

Cute sloth with Yay adding an ssl certificate

How many hot cups of coffee does this post or page deserve?

Click on an icon to rate it.

Average rating: 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Care to share?

We are sorry that you found this post to be like a weak cup of decaf.

Let us improve this post!

Tell us how we can improve this post?

Coffee Image for Email Subscribe
Get Caffeinated!

OK, we can't send you caffeine--or even coffee-- but we can send you new content. Subscribe to our email list and get new posts delivered to your inbox. If you don't specify preferences, you'll be signed up for a weekly digest of new posts in all categories, as well as occasional promotional emails and surveys. However, if you would like to customize the frequency and type of content you receive, you can sign up here.

Cheryl
Cherylhttps://www.caffeinejournal.com
Cheryl is a former Occupational Therapist and WordPress enthusiast who became a writer in some parallel universe and occasionally, but infrequently, publishes things in this one. She writes two blogs (or is it three) which she won't quit because she knows that blogs, in her case, are like a hydra and if she cuts one off two more will take its place. When she's not doing that, she enjoys hiking, cycling, kayaking (formerly fast, now ebike), messing around with Adobe illustrator, making assorted things, meditating (though she wouldn't call that "like," and reading. She normally doesn't speak about herself in the third person, but she sometimes uses "we" in the royal sense while writing this blog. She lives in Poulsbo, WA with her spouse, her youngest adult daughter, a very old mutt, and a Siamese cat.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

You may also be interested in:

Recently Popular

Share this
Send this to a friend