Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

STARTTLS vs SSL/TLS [closed]

Tags:

ssl

smtp

starttls

Mailclients offer both settings, the STARTTLS and SSL/TLS. What is the difference between STARTTLS and SSL/TLS?

like image 480
paweloque Avatar asked Apr 04 '11 15:04

paweloque


People also ask

Is STARTTLS fully secure?

And yes, STARTTLS is definitely less secure. Not only can it failback to plaintext without notification, but because it's subject to man-in-the middle attacks. Since the connection starts out in the clear, a MitM can strip out the STARTTLS command, and prevent the encryption from ever occurring.

Is STARTTLS deprecated?

STARTTLS was indeed intended to deprecate the "duplicated" ports, one with encryption and one without, but it is STARTTLS that is being effectively deprecated.

Does STARTTLS require a certificate?

Both direct TLS mode and TLS upgrade using STARTTLS can use client certificates. The only difference between these modes is that with STARTTLS you start with a plain connection and later upgrade if the server announces support for STARTTLS.

What is the purpose of STARTTLS?

StartTLS is a protocol command used to inform the email server that the email client wants to upgrade from an insecure connection to a secure one using TLS or SSL. StartTLS is used with SMTP and IMAP, while POP3 uses the slightly different command for encryption, STLS.


2 Answers

The clearest explanation that I've read is from FastMail:

SSL and TLS both provide a way to encrypt a communication channel between two computers (e.g. your computer and our server). TLS is the successor to SSL and the terms SSL and TLS are used interchangeably unless you're referring to a specific version of the protocol.

STARTTLS is a way to take an existing insecure connection, and upgrade it to a secure connection using SSL/TLS. Note that despite having TLS in the name, STARTTLS doesn't mean you have to use TLS, you can use SSL.

Read the rest of the info they have, including a discussion of port numbers and POP/IMAP vs SMTP, here: https://www.fastmail.fm/help/technology_ssl_vs_tls_starttls.html

like image 75
james.garriss Avatar answered Oct 16 '22 10:10

james.garriss


The question is quite vague, but I guess I understand it. STARTTLS means "explicit TLS" where the connection is established on regular port and then STARTTLS command is sent to initiate SSL handshake and switch to protection mode. Another option probably defines implicit SSL/TLS on a dedicated port. In implicit mode first the handshake takes place and then the application-level protocol runs over the established secure channel.

like image 42
Eugene Mayevski 'Callback Avatar answered Oct 16 '22 10:10

Eugene Mayevski 'Callback