HTTP Vs HTTPS, All About SSL handshake


Published on

Published in: Education, Technology

HTTP Vs HTTPS, All About SSL handshake

  1. 1. By:
  2. 2. FLOW :What is Internet.OSI Model & TCP/IP Model.HTTP Protocol.HTTPS Protocol.Conclusion.
  3. 3. INTERNET Want to meet new people, do exciting things,shop at convenience, explore new world? Wantto stay at home too? You can do simultaneously ,when you go online. The Internet is a global system of interconnectedcomputer networks WWW, email, social networking, file transfer,online chat, commerce, teleconferencing, VoIP,video on demand etc. Internet is tangible network of computerssharing/exchanging information with the help ofPROTOCOLS.
  4. 4. Internet ProtocolsProtocol is a form of etiquette. Prescribed guide for conduct or actionComputers have to know in advance exactly how information is to beexchanged and precisely what the format will beInternet Protocols are the standards ,designed to specify howcomputers interact and exchange messages over internet.Protocols usually specifies:− The format of the messages.− How to handle errors.
  5. 5. OSI MODEL
  6. 6. TCP/IP ModelThis model is a condensed versionof the OSI model and only hasfour layers.TCP/IP Protocols are consideredto be standards around which theinternet has been developed. TheOSI model however is a "generic,protocol- independent standard.”
  7. 7. HTTPHTTP stands for HypertextTransfer Protocol.HTTP provides a set of rules andstandards that govern howinformation is transmitted onthe World Wide Web.Computers on the World WideWeb use the HyperText TransferProtocol to talk with each otherThe first part of an address(URL) of a site on the Internet,signifying a document written inHypertext Markup Language(HTML).
  8. 8. HTTP is a client-server protocol by which two machinescommunicate using a reliable, connection-orientedtransport service such as the TCP.A browser is an HTTP client because it sends requests to anHTTP server (Web server), which then sends responses back tothe clientAn HTTP server is a program that sits listening on a machinesport for HTTP requests.The standard (and default) port for HTTP servers to listen on is80, though they can use any port.
  9. 9. HTTP is stateless. The lifetime of a connection corresponds to a singlerequest-response sequenceAn HTTP client opens a tcp/ip connection to the server via a socket,transmits a request for a document, then waits for a reply from the server.Once the request-response sequence is completed, the socket is closed.There is no "memory" between client connections.The pure HTTP server implementation treats every request as if it wasbrand-new.
  10. 10. How HTTP WorksHTTP Server is implemented by Apache HTTP Server · Microsoft IIS ·Jigsaw · Zope etc.Each client-server transaction, whether a request or a response,consists of three main partsA response or request lineHeader informationThe body
  11. 11. Advantages of HTTPPlatform independent- Allows Straight cross platform porting.No Runtime support required to run properly.Usable over Firewalls! Global applications possible.Not Connection Oriented- No network overhead to create andmaintain session state and information.
  12. 12. HTTP LimitationsSecurity ConcernsPrivacy -Anyone can see contentIntegrity -Someone might alter content. HTTP is insecure since no encryptionmethods are used. Hence is subject to man in the middle and eavesdroppingof sensitive information.Authentication -Not clear who you are talking with. Anyone who intercepts therequest can determine the username and password being used.Stateless - Need State management techniques to maintain the informationacross multiple request-response cycles.
  13. 13. HTTPSHTTPS stands for HypertextTransfer Protocol over SecureSocket Layer, or HTTP over SSL.SSL acts like a sub layer underregular HTTP applicationlayering.HTTPS encrypts an HTTPmessage prior to transmissionand decrypts a message uponarrival.
  14. 14. HTTPSHTTPS by default uses port 443 as opposed to the standard HTTP portof 80.URLs beginning with HTTPS indicate that the connection betweenclient and browser is encrypted using SSLe.g.:SSL transactions are negotiated by means of a key based encryptionalgorithm between the client and the server, this key is usually either40 or 128 bits in strength (the higher the number of bits the moresecure the transaction).
  15. 15. Need SSL if… you have an online store or accept online orders and credit cards you offer a login or sign in on your site you process sensitive data such as address, birth date, license, or ID numbers you need to comply with privacy and security requirementsCertification Authority (CA) is an entity that issues digital certificates for useby other parties. It is an example of a trusted third party.e.g. VeriSign, Thwate, Geotrust etcAbility to connect to server via HTTP secure consists of: Generating key Generating certificate signing request Generating self signed certificate Certificate Authority signed certificate Configuring web server.
  16. 16. SSL Diagram When any modern browser is installed, it is sentwith several CA issuer certificates. These issuercertificates contain a public key for the issuer,among other information. When a web designer decides to use SSL heneeds to purchase a certificate that is signedusing the CAs private key. The web browser starts a connection to anHTTPS site. Along with this request the clientsends all supported encryption schemes. As a response to the browsers connectionrequest, the Server sends a copy of the certificatefrom step 2. Along with this transmission is theservers answer to the encryption negotiation. Once a certificate is downloaded, the signatureof the certificate (that was signed using the CAsprivate key) is checked using the CAs public key(installed in the browser in step 1. The connection succeeds, the client can nowdownload and upload to the web site with thesecurity of encryption.
  17. 17. Part One: SSL Handshake
  18. 18. Part Two: Transfer of Confidential Information
  19. 19. Part Three: Secure Session Closure
  20. 20. How SSL Overcomes HTTP Security ConcernsSecure Sockets Layer technology protects your Web site and makes iteasy for your Web site visitors to trust you in three essential ways:Privacy An SSL Certificate enables encryption of sensitive information during onlinetransactions.Integrity. A Certificate Authority verifies the identity of the certificate owner when it is issued.Authentication. Each SSL Certificate contains unique, authenticated information about thecertificate owner.
  21. 21. Limitations of HTTPS HTTPS cannot prevent stealing confidential information from the pagescached on the browser. Since in SSL data is encrypted only during transmission on the network, it is inclear text in the browser memory HTTPS is slightly slower than HTTP. HTTPS adds computational overhead as well as network overhead.
  22. 22. ConclusionThe HTTP network protocol is fundamental to the way the WorldWide Web works, and the encryption involved in HTTPS adds anessential layer if confidential information or sensitive data are to beexchanged over the public internet.Hence, If a website ever asks you to enter your credit cardinformation, you should automatically look to see if the web addressbegins with https://. If it doesnt, theres no way youre going to entersensitive information like a credit card number!
  23. 23. Online BibliographyCGI White Paper : Public Key Encryption and Digital SignaturesWorld Wide Web Consortium (W3C) RSA Algorithm