Tag: https

Making Your Word Press Site Secure with SSL for Free

Well, it has been quite a journey of learning and it has been quite good. Green Geeks, a big American website hosting company upset myself and a few other customers about their unwillingness to support the latest and best free and open encryption service, Let’s Encrypt.  They wanted to sell their SSL certificates instead.  The mentality is quite different from this hosting company that we found called Siteground who looks at the big picture.  Let me think for a second.  I’m a customer.  I want to choose my hosting company.  One company says ‘come over here and we’ll let you do your own certificates or we’ll sell you one” or company B says ‘We will sell you one and it’s our way or the highway.”  Which one will I choose?  Green Geeks needs to wake up and smell the coffee.

Anyway, Green Geeks forced me to figure it out by myself but it’s working. I got SSL installed on all my domains at Green Geeks.  You can read my tutorial about how to do that here.

HOW TO SET UP SSL ON CPANEL BY YOURSELF WHEN THE HOSTING COMPANY IS TOO SHORT-SIGHTED TO HELP YOU

Now that you have your SSL stuff installed you probably are like me and have a bunch of Word Press sites.  What you will find is you will probably get warnings that look like triangles, exclamation marks, etc, etc.

First, your best resource that I found through this process is this website where you can type in your domain and it will spit back the cause of your no-padlock SSL certificate problem.

WEBSITE TO TEST FIGURE OUT WHY NO SSL PADLOCK

Next, you’ll probably find this blog very educational and might help you decide a course of action that is slightly different from my decision to ‘just fix it quick’.  For me, my blogs weren’t highly important (like this one) so experimenting didn’t bother me.

GREAT WEBSITE TO LEARN ABOUT WHY MIXED SSL CONTENT WARNINGS COME AND WHAT TO DO ABOUT THEM

Now, without further adieu, here is the ‘quick fix solution’ to the ‘no padlock error in a Word Press website. Just install this plugin and, if it doesn’t fix by default, change the setting to match mine in the screen shot below.

GREAT PLUG-IN TO FIX ALL YOUR MIXED CONTENT SECURITY WARNINGS

WP-SSL-Insecure-Content-Fixer-Settings

Bonus Feature! Force your Word Press Site to Use HTTPS

Now that you’ve gone to the trouble of making SSL work and then fixing all the errors, why not force all traffic to run via HTTPS so your site is hyper secure?  It’s easy with this this plugin.  Just… well. Plug it in.  And done.

GREAT WORD PRESS PLUG-IN TO FORCE ALL TRAFFIC TO HTTPS

Hopefully everything here works smoothly for you as it did for me.  You’ll note my success since I did this tutorial to this blog! 😉

 

Tags : , , , , , , , , , , ,

How to Make Self Signed SSL Certificate Work in CPanel

Tutorial Assumptions

  • you have a website domain
  • you have shared hosting using cPanel
  • you are using a computer running Ubuntu

This isn’t a perfect solution if you have a public facing website, but if you have a private website for yourself, your friends, your business, etc, this will be ‘better than nothing’ and at least give you encryption for your traffic.

Most hosting companies probably sell ‘real’ SSL certificates which cost a certain amount per year.  This may make sense if you don’t have time to figure it out, or you don’t have root control of your server, or if your server happens to suck and not be ubuntu.  If these things happen, you should consider a hosting change ASAP because someone else is controlling your website.

In my case, I’m financially challenged right now and I have a couple of personal domains I want to secure.  Note that I have not yet, as of the date of posting this, figured out what to do for W.O.T.  It is still showing ‘not secure’ because it’s not https but I don’t want to use a self-signed certificate because it will scare away most visitors before they start reading.

The best looking solution moving forward, by the way, and I’m trying to plan all my future sites around it is Let’s Encrypt which is supported by some major players but also playing ball with the EFF it looks like.  However, if you don’t have control over your terminal on your server and cannot issue commands, I’m not sure that it will work. I’m still investigating.

This tutorial is using Greengeeks cheap shared hosting out of the USA.  I remember having to contacts tech support to making this option available in cpanel so you might have to as well

Download and Install OpenSSL on your Ubuntu machine

I assume it would be this command although it has been a while. might have to search it out if this doesn’t work:

sudo apt-get install openssl

Navigate to a Nice Place with your Terminal and Create a Directory Where Your Certificates will be Stored

I gave these a file name of domain-name-ssl-certs, and I did it in my home directory for speed and ease

sudo mkdir domain-name-ssl-certs

Run the Command to Generate the Certificates

You will need to swap out the directory path in this command to the one that matches where you just created the above directory

sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /directory/directory/domain-name-ssl-certs/apache.key -out /directory/directory/domain-name-ssl-certs/apache.crt

It will  ask you to fill out stuff and the most important is this one which links it to your actual domain:

Common Name (e.g. server FQDN or YOUR name) []:example.com

Go to Cpanel back end and prepare to paste in some stuff where it should go

If you don’t see the stuff I’m talking about in this section it may be because your hosting company doesn’t want you to know you can do this because they want to sell you a $20 to $50/year ‘real certificate’.  But if you are doing home-based stuff you need not spend.  Make them make this function work or move to a company who will.

In my cpanel it’s under ‘security’ and ‘SSL/TLS’.  Click that.

Install and Manage SSL for your site (HTTPS)

Go back to your terminal and open those .key and .crt files with a text editor like nano or gedit

sudo nano apache.crt

Select all the text after the — of ‘begin cert’ and before the — of ‘end certificate’ as follows.

cert-copy-paste

with the control and shift button down hit the ‘c’ button to copy it to the clipboard memory.

Go back to your cPanel and paste it in the certificate field. If you get a warning that it doesn’t match yoru domain it’s because you didn’t enter the domain correctly while you were creating the certificate in the ‘Common name’ step above that I warned you about.  You should see everything as below except the red warning:

cpanel-warning

Go back and Open your Private Key that you generated and Copy/Paste it into your Cpanel

sudo nano apache.key

copy-apache-private-key

control+shift+C it into this window in cPanel

cpanel-private-key-paste

Click ‘install’ and you should be good to go.

Of course you will always get the ‘this website is dangerous’ warning the first time you visit it but whatever.

Hope that helps.  Now to try the same method with ‘let’s encrypt’ and hopefully get rid of the ‘dangerous’ warnings, too!

 

Tags : , , , , , , , ,