Difference between HTTPS and SSL

SecuritySslHttpsCommunicationCommunication Protocol

Security Problem Overview


What is the difference between HTTPS and SSL? I read about them and found following:

  • HTTPS: HTTPS is a combination of HTTP with SSL/TLS. It means that HTTPS is basically HTTP connection which is delivering the data secured using SSL/TLS.

  • SSL: SSL is a secure protocol that works on the top of HTTP to provide security. That means SSL encrypted data will be routed using protocols like HTTP for communication.

I am wondering where is the difference between these two? Or both are identical?

Security Solutions


Solution 1 - Security

The explanation of SSL that you've found is wrong.

SSL (Secure Socket Layer) or TLS (Transport Layer Security) works on top of the transport layer, in your examples TCP. TLS can be used for more or less any protocol, HTTPS is just one common instance of it.

HTTP is an application layer protocol.

In regular, non-encrypted HTTP, the protocol stack can look like this:

When using HTTPS, the stack looks like this:

  • HTTP
  • TLS (SSL)
  • TCP
  • IP
  • Ethernet

Solution 2 - Security

HTTPS runs over SSL (as it's name suggests, HTTP-over-SSL), not SSL over HTTP. First SSL session is established, then all HTTP data are wrapped into secured SSL packets before sending and after receiving.

Solution 3 - Security

SSL (Secure Sockets Layer) is a standard security technology to create an encrypted link between a server and a client. This link ensures that all data passed between the server and the client remain private and secure. It was designed to support protocols such as FTP, HTTP, TELNET.

Hypertext Transfer Protocol Secure (HTTPS) or “HTTP Secure,” is an application specific implementation that is a combination of the Hypertext Transfer Protocol (HTTP) with the SSL/TLS. HTTPS is used to provide encrypted communication and secure identification of a server, so that no middle man can intercept the data easily.

As everything in HTTP is in plain text (or encoded) , it is used with SSL/TLS to encrypt it.

Found this link which explains SSL, TLS, HTTPS : http://nexsniper.blogspot.com/2017/11/what-is-ssl-tls-and-https.html

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbayCoderView Question on Stackoverflow
Solution 1 - SecurityAnders LindahlView Answer on Stackoverflow
Solution 2 - SecurityEugene Mayevski 'CallbackView Answer on Stackoverflow
Solution 3 - SecurityBucky RatView Answer on Stackoverflow