Wednesday, March 26, 2008

How does ssl work


Internet communication typically runs through multiple program layers on a server before getting to the requested data such as a web page or cgi scripts.



The outer layer is the first to be hit by the request. This is the high level protocols such as HTTP (web server), IMAP (mail server), and FTP (file transfer).


Determining which outer layer protocol will handle the request depends on the type of request made by the client. This high level protocol then processes the request through the Secure Sockets Layer. If the request is for a non-secure connection it passes through to the TCP/IP layer and the server application or data.


If the client requested a secure connection the ssl layer initiates a handshake to begin the secure communication process. Depending on the SSL setup on the server, it may require that a secure connection be made before allowing communication to pass through to the TCP/IP layer in which case a non-secure request will send back an error asking for them to retry securely (or simply deny the non-secure connection).





This is a good time to answer a question we periodically get: "what does ssl encrypt?"


This question is usually geared toward whether or not the path and query string is encrypted in an HTTPS "get" request (this is where form field responses or program variables are tagged on to the end of the url). These fields are stripped off of the URL when creating the routing information in the https packaging process by the browser and are included in the encrypted data block.


The page data (form, text, and query string) are passed in the encrypted block after the encryption methods are determined and the handshake completes.




A related issue that frequently comes up is whether or not form data is transmited with encryption if the blank form is displayed without https. If the form "action" is set to use https then the ssl handshake will take place before the data is sent. Whether or not the original form is displayed using https has little to do with the form submission unless the form action uses a relative path, in which case the default will be to use the protocol that was used to display the form.


18 comments:

Anonymous said...

diazepam online order diazepam canada - buy diazepam 5mg online usa

Anonymous said...

ambien online no prescription ambien abuse stories - ambien side effects shaking

Anonymous said...

diazepam without prescription diazepam 5 mg tablet - diazepam clonazepam equivalent

Anonymous said...

buy lorazepam online buy ativan - ativan side effects weight loss

Anonymous said...

xanax antidepressant xanax needed get high - xanax online no prescription paypal

Anonymous said...

diazepam 10 mg zopiclone withdrawal diazepam - valium diazepam 5mg roche

Anonymous said...

xanax depression xanax drug test detection period - xanax 1mg high

Anonymous said...

order lorazepam ativan side effects men - ativan withdrawal opiates

Anonymous said...

can i buy xanax online xanax side effects headache - buy xanax online no prescription cheap

Anonymous said...

buy ativan online ativan overdose with alcohol - ativan 063

Anonymous said...

order ativan buy lorazepam drug - ativan or xanax stronger

Anonymous said...

cheap diazepam valium blue pill 10 - long does 5mg valium effects last

Anonymous said...

ambien pharmacy ambien sleep paralysis - buy ambien prescription online

Anonymous said...

generic valium online valium zyrtec - valium for sale in canada

Anonymous said...

buying ambien online ambien cr addiction - zoloft insomnia ambien

Anonymous said...

cheapest soma buy soma cod - buy somatomax

Anonymous said...

ambien without prescriptions ambien good or bad - normal ambien cr dosage

Anonymous said...

Ηellο, this weеkend іs faѕtidiοus for mе, since this poіnt in time i аm reaԁing this fantastic educatiоnal poѕt hеre at my house.


Check out my web-ѕite ... payday loans