About Us   |   Advertise

What is SSL and Why Should You Care?





In a previous report about changing from HTTP to HTTPS, it touched briefly on Single Socket Layer (SSL). In short, SSL and its successor, Transport Layer Security (TLS), are needed to operate securely online.

In this article, let’s take a closer look at answering the question “what is SSL” and also how SSL/TLS protects your sensitive information.



Why Should You Care About SSL/TLS?

Before heading into “How” however, let’s take a look at “Why” you’d want to use SSL/TLS in the first place.

These days, data security is golden. Anyone who’s had his or her identity stolen could tell you that. The key to keeping your information secure is to tuck it away someplace safe where no one else can see it.

Unfortunately, that’s not possible online. When you transfer information online, there’s always some point in the process where both you and your customer lose control the data.

You see, while your customer can secure the device on which your browser runs and you can secure your Web server, the pipes of the online world are out of both of your hands.



Whether it’s the cable company, the phone company or a government-operated undersea cable, your customers’ data will pass through someone else’s hands online and that’s why it needs to be encrypted using SSL/TLS.

Here are some examples of the types of information you can use SSL/TLS to secure online:

  • Credit card transactions
  • Website logins
  • Passing private and personal information back and forth
  • Securing your email from snoopers.

Yes, if you conduct business online, SSL/TLS is critical to your continued success. Why? Because:

Next, let’s take a look at how SSL/TLS works.

Public, Public and Session Keys are the, uh … Key

When you use SSL/TLS to transmit your sensitive data online, your browser and the secured Web server it’s connecting to use two separate keys to set-up a secure connection: a public and a private key. Once the connection is in place, a third type of key, the session key, is used to encrypt and decrypt the information passed back and forth.



Here’s how it works:

  1. When you connect to a secure sever (e.g. amazon.com), the “handshake” process begins:
    1. First, the server will pass your browser it’s SSL/TLS certificate as well as it’s public key;
    2. Your browser will then check the server’s certificate to see if it can trust it using factors such as whether the certificate was issued by a reliable source and if the certificate hasn’t expired.
    3. If the SSL/TLS can be trusted, your browser will send an acknowledgment back to the server letting it know it’s ready to go. That message will be encrypted using the server’s public key and can only be decrypted using the server’s private key. Included in that acknowledgement is your browser’s public key.
      1. If the server cannot be trusted, you’ll see a warning within your browser. You can always ignore the warning, but it’s not wise.
    4. The server then creates the session key. Before sending it to your browser, it encrypts the message using your public key so that only your browser, using its private key, can decrypt it.
  2. Now that the handshake is over and both partiers have securely received the session key, your browser and the server share a secure connection. Both your browser and the server use the session key to encrypt and decrypt the sensitive data as it’s sent back-and-forth over online.
    1. Once the session is over, the session key is discarded. Even if you connect one hour later, you’ll need to run through this process from the beginning which will result in a new session key.

Size Matters

All three types of keys consist of long strings of numbers. The longer the string, the more secure the encryption. On the down side, a longer string takes more time to encrypt and decrypt data and puts more strain on both the server’s and your browser’s resources.

This is why session keys exist. A session key is much shorter than both the public and private keys. The result: much faster encryption and decryption but less security.

Wait – less security? Isn’t that bad? Not really.



Session keys only exist for a short time before they’re deleted. And while they’re not as long as the other two types of keys, they are secure enough to prevent hacking during the short time that the connection between your browser and the secure server exists.

Encryption Algorithms

Both the public and private keys are created using one of three encryption algorithms.

We’re not going to get too deep here, you literally need a math degree (maybe several) to understand encryption algorithms completely however, it’s handy to know the basics when it comes time to choose the type that your own website sill use.

The three primary algorithms are:



  • RSA – named after its creators (Ron Rivest, Adi Shamir, and Leonard Adlema), RSA has been around since 1977. RSA creates keys by using two random prime numbers in a series of calculations. Learn more…
  • Digital Signature Algorithm (DSA) – created by the National Security Agency (NSA), DSA creates keys using a two-step process that uses a “crptographic hash function” in a series of calculations. Learn more…
  • Elliptic Curve Cryptography (EEC) – EEC creates keys using “the algebraic structure of elliptical curves” in a complex series of calculations. Learn More…

Which Encryption Algorithm Should You Choose?

Math aside, which is the best encryption algorithm to use?

Currently, ECC seems to be coming in on top. Thanks to the math, keys created with the ECC algorithm are shorter while still being as secure as much longer keys. Yes, ECC breaks the “size matters” rule making it ideal for secure connection on less powerful devices such a your mobile phone or tablet.

The best approach may be a hybrid one, where your server can accept all three types of algorithms so it can handle whatever is thrown at it. The two downsides of this approach can be:

  1. The server uses more resources handling RSA, DSA and ECC as opposed to only ECC; and
  2. Your SSL/TLS certificate provider may charge you more. Look around however, there are very creditable providers who do not charge extra for using all three.

Why is TLS Still Being Called SSL?

As we mentioned at the top of this post, TLS is the successor of SSL. While SSL is still in use, TLS is a more refined solution and plugs many of the security holes that plagued SSL.



Most hosting companies and SSL/TLS certificate providers still use the term “SSL certificate” instead of “TLS Certificate”.

Be clear however, the better hosting and certificate providers are indeed using TLS certificates – they just didn’t want to change the name ’cause it would confuse their customers.

Conclusion

Single Socket Layer (SSL), and its successor, Transport Layer Security (TLS), are needed to operate securely online. Using long strings of numbers called, “Keys”, SSL/TLS enables connections where both your and your customer’s information is encrypted before it’s sent and decrypted when it arrives.

Bottom line: if you conduct business online, SSL/TLS is critical to your continued success because it builds trust while protecting both you and your customers.



Security Photo via Shutterstock

More in: 5 Comments ▼

Matt Mansfield


Matt Mansfield Matt Mansfield is the Tech Editor and SEO Specialist at Small Business Trends where he is responsible for directing and writing many of the site’s product reviews, technology how-to’s, and lists of small business resources as well as increasing the reach of our content.

5 Reactions

  1. Online businesses today have to be secure and this is how you do it. Get on board people.

  2. Aira Bongco

    I’ll be honest. I’ve been seeing SSL a lot but I have not bothered to know what it is. Thanks to this, I now know what it means.

  3. This explanation is bit wrong. Server never creates a session key. Sever certificate is validated by browser and then browser generate a session key which is encrypted by server’s public key and forwarded to server. Once key is shared between server and client, message flow starts.

    Does every browser(client) has public/private key pair? Moreover its always client who authenticate the server and client itself gets authenticated by its username/passcode.

    Regards
    Deepak G

  4. How safe is SSL/TLS when it is included in an online tool for e-commerce – like Weebly.com? As I understand it the key is open to the staff in the company providing the services?

  5. This is really helpful. Thanks for the clear explanations! (Note: I rarely leave comments online. That’s how much I needed this article to help me understand SSL/TSL!)

Leave a Reply

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

*



What is Digital Knowledge Management & Why Should Small Businesses Care?




We are witnessing a major shift: the rise of AI services like Siri, Alexa, and Google Assistant are changing how consumers find and interact with small businesses. Watch this webinar and find out what you can do to power your business across all the new services of today and tomorrow.






No, Thank You