Jump to content

HTTPS: Difference between revisions

From Wikipedia, the free encyclopedia
[pending revision][pending revision]
Content deleted Content added
See also: Stunnel, open source HTTPS proxy
added disputed section - cited reference directly contradicts statement made -aa
Line 119: Line 119:


==History==
==History==

{{disputed}}


[[Netscape Communications]] created HTTPS in 1994 for its [[Netscape Navigator]] web browser.<ref>{{cite book
[[Netscape Communications]] created HTTPS in 1994 for its [[Netscape Navigator]] web browser.<ref>{{cite book

Revision as of 15:38, 21 September 2009

Hypertext Transfer Protocol Secure (HTTPS) is a combination of the Hypertext Transfer Protocol with the SSL/TLS protocol to provide encryption and secure identification of the server. HTTPS connections are often used for payment transactions on the World Wide Web and for sensitive transactions in corporate information systems. HTTPS should not be confused with Secure HTTP (S-HTTP) specified in RFC 2660.

Main idea

The main idea of HTTPS is to create a secure channel over an insecure network. This ensures reasonable protection from eavesdroppers and man-in-the-middle attacks, provided that adequate cipher suites are used and that the server certificate is verified and trusted.

The trust inherent in HTTPS is based on major certificate authorities which come pre-installed in browser software (this is equivalent to saying "I trust certificate authority (e.g. VeriSign/Microsoft/etc.) to tell me who I should trust"). Therefore an HTTPS connection to a website can be trusted if and only if all of the following are true:

  1. The user trusts the certificate authority to vouch only for legitimate websites without misleading names.
  2. The website provides a valid certificate (an invalid certificate shows a warning in most browsers), which means it was signed by a trusted authority.
  3. The certificate correctly identifies the website (e.g. visiting https://somesite and receiving a certificate for "Somesite Inc." and not "Shomesite Inc." [see #2]).
  4. Either the intervening hops on the internet are trustworthy, or the user trusts the protocol's encryption layer (TLS or SSL) is unbreakable by an eavesdropper.

Browser integration

When connecting to a site with an invalid certificate, older browsers would present the user with a dialog box asking if they wanted to continue. Newer browsers display a warning across the entire window. Newer browsers also prominently display the site's security information in the address bar.

Extended validation certificates turn the address bar green in newer browsers. Most browsers also pop up a warning to the user when visiting a site that contains a mixture of encrypted and unencrypted content.

Many web browsers use the address bar to tell the user that their connection is secure, often by coloring the background.
Most web browsers alert the user when visiting sites that have invalid security certificates.

Technical

Difference from HTTP

As opposed to HTTP URLs which begin with "http://" and use port 80 by default, HTTPS URLs begin with "https://" and use port 443 by default.

HTTP is insecure and is subject to man-in-the-middle and eavesdropping attacks which can let attackers gain access to website accounts and sensitive information. HTTPS is designed to withstand such attacks and is secure.

Network layers

HTTP operates at the highest layer of the OSI Model, the Application layer; but the security protocol operates at a lower sublayer, encrypting an HTTP message prior to transmission and decrypting a message upon arrival. Strictly speaking, HTTPS is not a separate protocol, but refers to use of ordinary HTTP over an encrypted Secure Sockets Layer (SSL) or Transport Layer Security (TLS) connection.

Server setup

To prepare a web server to accept HTTPS connections, the administrator must create a public key certificate for the web server. This certificate must be signed by a trusted certificate authority for the web browser to accept it. The authority certifies that the certificate holder is indeed the entity it claims to be. Web browsers are generally distributed with the signing certificates of major certificate authorities so that they can verify certificates signed by them.

Acquiring certificates

Authoritatively signed certificates may be free [1] (apparently free only if you pay for other services, though) or cost between US$13[2] and $1,500[3] per year.

Organizations may also run their own certificate authority, particularly if they are responsible for setting up browsers to access their own sites (for example, sites on a company intranet, or major universities). They can easily add copies of their own signing certificate to the trusted certificates distributed with the browser.

There also exist peer-to-peer certificate authorities.[citation needed]

Use as access control

The system can also be used for client authentication in order to limit access to a web server to authorized users. To do this, the site administrator typically creates a certificate for each user, a certificate that is loaded into his/her browser. Normally, that contains the name and e-mail address of the authorized user and is automatically checked by the server on each reconnect to verify the user's identity, potentially without even entering a password.

In case of compromised private key

A certificate may be revoked before it expires, for example because the secrecy of the private key has been compromised. Newer browsers such as Firefox,[4] Opera,[5] and Internet Explorer on Windows Vista[6] implement the Online Certificate Status Protocol (OCSP) to verify that this is not the case. The browser sends the certificate's serial number to the certificate authority or its delegate via OCSP and the authority responds, telling the browser whether or not the certificate is still valid.[7]

Limitations

The level of protection depends on the correctness of the implementation of the web browser and the server software and the actual cryptographic algorithms supported. See list in HTTP_Secure#Main idea.

Also, HTTPS is vulnerable when applied to publicly-available static content. The entire site can be indexed using a web crawler, and the URI of the encrypted resource can be inferred by knowing only the intercepted request/response size.[8] This allows an attacker to have access to the plaintext (the publicly-available static content), and the encrypted text (the encrypted version of the static content), permitting a cryptographic attack.

Because SSL operates below HTTP and has no knowledge of higher-level protocols, SSL servers can only strictly present one certificate for a particular IP/port combination.[9] This means that, in most cases, it is not feasible to use name-based virtual hosting with HTTPS. A solution called Server Name Indication (SNI) exists which sends the hostname to the server before encrypting the connection, although many older browsers don't support this extension. Support for SNI is available since Firefox 2, Opera 8, and Internet Explorer 7 on Windows Vista.[10][11][12]

History

Netscape Communications created HTTPS in 1994 for its Netscape Navigator web browser.[13] Originally, HTTPS was only used with SSL encryption, but this has been made obsolete by Transport Layer Security. HTTPS was adopted as a web standard with the publication of RFC 2818 in May 2000.[14]

See also

References

  1. ^ "StartSSL Free certificates". StartSSL. Retrieved 20 May 2009.
  2. ^ "SSL Certificate Services". Go Daddy. Retrieved 6 May 2009.
  3. ^ "Secure Site Pro with EV". VeriSign. Retrieved 6 May 2009.
  4. ^ "Mozilla Firefox Privacy Policy". Mozilla Foundation. 27 April 2009. Retrieved 13 May 2009.
  5. ^ "Opera 8 launched on FTP". Softpedia. 19 April 2005. Retrieved 13 May 2009.
  6. ^ Lawrence, Eric (31 January 2006). "HTTPS Security Improvements in Internet Explorer 7". MSDN. Retrieved 13 May 2009.
  7. ^ Myers, M (1999). "Online Certificate Status Protocol - OCSP". Internet Engineering Task Force. Retrieved 13 May 2009. {{cite web}}: Unknown parameter |coauthors= ignored (|author= suggested) (help); Unknown parameter |month= ignored (help)
  8. ^ Pusep, Stanislaw (31 July 2008). "The Pirate Bay un-SSL". Retrieved 6 March 2009.
  9. ^ Apache FAQ: Why can't I use SSL with name-based/non-IP-based virtual hosts?
  10. ^ Lawrence, Eric (22 October 2005). "Upcoming HTTPS Improvements in Internet Explorer 7 Beta 2". Microsoft. Retrieved 12 May 2009.
  11. ^ Server Name Indication (SNI)
  12. ^ Mozilla 1.8
  13. ^ Walls, Colin (2005). Embedded software. p. 344.
  14. ^ Rescorla, E (2000). "HTTP Over TLS". Internet Engineering Task Force. Retrieved 6 May 2009. {{cite web}}: Unknown parameter |month= ignored (help)