95

According to wikipedia: http://en.wikipedia.org/wiki/Transport_Layer_Security

Seems like TLS is a replacement to SSL, but most websites are still using SSL?

2

7 Answers 7

67

In short, TLSv1.0 is more or less SSLv3.1. You can find more details in this question on ServerFault.

Most websites actually support both SSLv3 and TLSv1.0 at least, as this study indicates (Lee, Malkin, and Nahum's paper: Cryptographic Strength of SSL/TLS Servers: Current and Recent Practices, IMC 2007) (link obtained from the IETF TLS list). More than 98% support TLSv1+.

I think the reason why SSLv3 is still in use was for legacy support (although most browsers support TLSv1 and some TLSv1.1 or even TLSv1.2 nowadays). Until not so long ago, some distributions still had SSLv2 (considered insecure) on by default along with the others.

(You may also find this question interesting, although it's about the usage pattern of TLS rather than SSL vs. TLS (you could in fact have the same pattern with SSL). This does not apply to HTTPS anyway, since HTTPS uses SSL/TLS from the beginning of the connection.)

23

From http://www.thoughtcrime.org/blog/ssl-and-the-future-of-authenticity/

In the early 90’s, at the dawn of the World Wide Web, some engineers at Netscape developed a protocol for making secure HTTP requests, and what they came up with was called SSL. Given the relatively scarce body of knowledge concerning secure protocols at the time, as well the intense pressure everyone at Netscape was working under, their efforts can only be seen as incredibly heroic. It’s amazing that SSL has endured for as long as it has, in contrast to a number of other protocols from the same vintage. We’ve definitely learned a lot since then, though, but the thing about protocols and APIs is that there’s very little going back.

There were two major updates to the SSL protocol, SSL 2 (1995) and SSL 3 (1996). These were carefully done to be backwards compatible, to ease adoption. However backwards compatibility is a constraint for a security protocol for which it can mean backwards vulnerable.

Thus it was decided to break backwards compatiblity, and the new protocol named TLS 1.0 (1999). (In hindsight, it might have been clearer to name it TLS 4)

The differences between this protocol and SSL 3.0 are not dramatic, but they are significant enough that TLS 1.0 and SSL 3.0 do not interoperate.

TLS has been revised twice, TLS 1.1 (2006) and TLS 1.2 (2008).

As of 2015, all SSL versions are broken and insecure (the POODLE attack) and browsers are removing support. TLS 1.0 is ubiquitous, but only 60% of sites support TLS 1.1 and 1.2, a sorry state of affairs.


If you're interested in this stuff, I recommend Moxie Marlinspike's clever and funny talk at https://www.youtube.com/watch?v=Z7Wl2FW2TcA

1
  • I remember a Usenet news:comp.sources.unix posting called Secure Sockets Layer in the late 1980s. I doubt it has much if any relationship with what Netscape did other than the name.
    – user207421
    Commented Nov 27, 2013 at 22:29
13

tls1.0 means sslv3.1

tls1.1 means sslv3.2

tls1.2 means sslv3.3

the rfc just changed the name, you could find tls1.0's hex code is 0x0301, which means sslv3.1

3

TLS maintains backward compatibility with SSL and therefore the communication protocol is nearly identical in any of the mentioned versions herein. The two important differences between SSL v.3, TLS 1.0, and TLS 1.2, is the pseudo-random function (PRF) and the HMAC hashing function (SHA, MD5, handshake), which is used to construct a block of symmetric keys for Application Data encryption (server keys + client keys + IV). Major difference between TLS 1.1 and TLS 1.2 is that 1.2 requires use-of "explicit" IV to protect against CBC attacks, although there is no changes to PRF or protocol needed for this. TLS 1.2 PRF is cipher-suite-specific, which means PRF can be negotiated during handshake. SSL was originally developed by Netscape Communications (historic) and later maintained by Internet Engineering Task Force (IETF, current). TLS is maintained by the Network Working Group. Here are difference between PRF HMAC functions in TLS:

TLS 1.0 and 1.1

PRF(secret, label, seed) = P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed);

TLS 1.2

PRF(secret, label, seed) = P_hash(secret, label + seed)

0

"If it ain't broken, don't touch it". SSL3 works fine in most scenarios (there was a fundamental flaw found in SSL/TLS protocol back in October, but this is a flaw of applications more than of a procol itself), so developers don't hurry to upgrade their SSL modules. TLS brings a number of useful extensions and security algorithms, but they are handy addition and not a must. So TLS on most servers remains an option. If both server and client support it, it will be used.

Update: in '2016 SSL 3, and even TLS up to 1.2 are found to be vulnerable to various attacks and migration to TLS 1.2 is recommended. There exist attacks on implementations of TLS 1.2 as well, though they are server-dependent. TLS 1.3 is currently in development. And now TLS 1.2 is a must.

6
  • 2
    No, this is a protocol flaw, and developers should upgrade their SSL stacks. This being said, there are guidelines for using the renegotiation extension in RFC 5746 for SSLv3, in addition for the ones for TLS.
    – Bruno
    Commented Sep 12, 2010 at 1:02
  • If you kill somebody with the knife, this is not knife's flaw, but the one of your brain. Same here. If the protocol was used in the way it was not designed for, it's not a flaw of the protocol. Commented Sep 12, 2010 at 12:37
  • 1
    The protocol was designed in a way that application on top of it should treat it as a normal socket as much as possible. The renegotiation issue, without the new extension, forces awareness by the application layer (e.g. HTTP). There is an interested thread on this topic on the IETF TLS mailing list: ietf.org/mail-archive/web/tls/current/msg04000.html
    – Bruno
    Commented Sep 12, 2010 at 22:51
  • 1
    I agree some of it should be done at the application level, but I'm not aware of any implementation and protocol takes that into account. The stacks can usually cope with renegotiation that they initiate legitimately, but not so much if a MITM initiates it (which is the problem). That's why the IETF TLS group chose to fix it at the TLS level, and that's also why people really should switch on that extension, or disable renegotiation altogether.
    – Bruno
    Commented Sep 13, 2010 at 9:33
  • 1
    There are more fundamental issue in SSL 3.0 than the one you mention. E.g., CBC padding oracle, as well as the re-use of the IV or the previous record. The former still plagues TLS but can be worked-around, while the latter is fixed on TLS 1.1.
    – Nikos
    Commented Nov 24, 2013 at 11:15
0

https://hpbn.co/transport-layer-security-tls/ is a good introduction

The SSL protocol was originally developed at Netscape to enable ecommerce transaction security on the Web, which required encryption to protect customers’ personal data, as well as authentication and integrity guarantees to ensure a safe transaction. To achieve this, the SSL protocol was implemented at the application layer, directly on top of TCP (Figure 4-1), enabling protocols above it (HTTP, email, instant messaging, and many others) to operate unchanged while providing communication security when communicating across the network.

When SSL is used correctly, a third-party observer can only infer the connection endpoints, type of encryption, as well as the frequency and an approximate amount of data sent, but cannot read or modify any of the actual data.

SSL 2.0 was the first publicly released version of the protocol, but it was quickly replaced by SSL 3.0 due to a number of discovered security flaws. Because the SSL protocol was proprietary to Netscape, the IETF formed an effort to standardize the protocol, resulting in RFC 2246, which was published in January 1999 and became known as TLS 1.0. Since then, the IETF has continued iterating on the protocol to address security flaws, as well as to extend its capabilities: TLS 1.1 (RFC 2246) was published in April 2006, TLS 1.2 (RFC 5246) in August 2008, and work is now underway to define TLS 1.3.

0
Feature SSL TLS
Full Name Secure Socket layer Transport layer security
Created By Netscape in 1994 In 1994, IETF took over the maintenance of SSL and later renamed it

Note: The world used the mostly TLS over SSL.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.