What is SSL and Why Should You Care?


what is ssl

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.

What is SSL and Why Should You Care?

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.

What is SSL and Why Should You Care?

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.

What is SSL and Why Should You Care?

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…
Encryption AlgorithmDescription
RSA (Ron Rivest, Adi Shamir, and Leonard Adleman)- Named after its creators, RSA has been in use since 1977.
- It generates keys using two random prime numbers through a series of calculations.
Digital Signature Algorithm (DSA)- Created by the National Security Agency (NSA).
- DSA creates keys using a two-step process that involves a cryptographic hash function.
Elliptic Curve Cryptography (ECC)- ECC utilizes the algebraic structure of elliptical curves for key generation.
- Known for its strong security with shorter key lengths, making it efficient for resource-constrained devices.

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.

What is SSL and Why Should You Care?

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.

Choosing the Right Encryption Algorithm

The choice of encryption algorithm is a critical aspect of implementing SSL/TLS for securing your online communications. Each algorithm has its characteristics and level of security. Here’s a look at the primary encryption algorithms used in SSL/TLS and considerations for choosing the right one:

  • RSA (Ron Rivest, Adi Shamir, and Leonard Adleman): Developed in 1977, RSA uses mathematical calculations based on two random prime numbers to create keys. It is widely used and established in the field of encryption.
  • DSA (Digital Signature Algorithm): Developed by the National Security Agency (NSA), DSA employs a two-step process involving a cryptographic hash function. It is known for its security and reliability.
  • ECC (Elliptic Curve Cryptography): ECC uses the algebraic structure of elliptical curves for encryption. It provides strong security with shorter key lengths, making it suitable for resource-constrained devices like mobile phones and tablets.

Considerations for Choosing an Encryption Algorithm:

  • Security: Evaluate the level of security offered by each algorithm. ECC is known for its strong security despite shorter key lengths, while RSA and DSA also provide robust security.
  • Performance: Assess the performance impact of the encryption algorithm on your server and client devices. ECC is efficient and suitable for resource-constrained environments.
  • Compatibility: Ensure that your chosen encryption algorithm is compatible with your server, client devices, and SSL/TLS certificate provider.
  • Certificate Provider: Check whether your SSL/TLS certificate provider supports the encryption algorithm you intend to use. Some providers may charge extra for certain algorithms.
  • Hybrid Approach: Consider implementing a hybrid approach where your server can accept multiple encryption algorithms, allowing flexibility in handling different types of connections.
ConsiderationDescription
Security- Evaluate the level of security provided by the encryption algorithm.
- ECC is known for strong security despite shorter key lengths.
- RSA and DSA also offer robust security.
Performance- Assess the impact of the encryption algorithm on server and client device performance.
- ECC is efficient and suitable for resource-constrained environments.
Compatibility- Ensure compatibility of the chosen encryption algorithm with your server, client devices, and SSL/TLS certificate provider.
Certificate Provider Support- Check if your SSL/TLS certificate provider supports the chosen encryption algorithm.
- Some providers may charge extra for specific algorithms.
Hybrid Approach- Consider implementing a hybrid approach allowing your server to accept multiple encryption algorithms for flexibility.

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



Matt Mansfield Matt Mansfield is the SEO manager at Small Business Trends and has been a member of the team for 11 years. He carries over 24 years of experience in driving targeted online traffic using content and search engine optimization (SEO). He specializes in data research and content creation designed to attract visitors.