LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 09-17-2003, 09:54 AM   #1
Linh
Member
 
Registered: Apr 2003
Posts: 178

Rep: Reputation: 30
HTTP versus HTTPS


1) What are the major differences between HTTP and HTTPS ?

2) Is it true that HTTP uses private encryption and HTTPS uses public and private key encryption ?

3) How is HTTPS is more secure than HTTP, since HTTPS suppose to prevent hacking when the data is being transfer from the client to the server ?

4) How do you set up an Apache web server to run HTTPS ?
 
Old 09-17-2003, 11:18 AM   #2
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
1) encryption

2) no

3) https is more secure because it encrypts the data being trasnmitted over the wire, therefore making it (nearly) impossible for someone to see whats being transmitted, http however does not, and information sent over the wire is sent in 'cleartext' making it possible for anyone sitting inbetween the 2 transmitting nodes to 'sniff' the stream and potentially read everything your doing

4) I wouldnt recommend running EVERYTHING via https as it is slightly slower than http, only encrypt the data which you wouldnt want other people to see (customer cc numbers etc.) but if you want a guide check out http://www.ibiblio.org/pub/Linux/doc...che+SSL+PHP+fp

Last edited by phoeniXflame; 09-17-2003 at 11:20 AM.
 
Old 09-17-2003, 11:28 AM   #3
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
Re: HTTP versus HTTPS

Quote:
Originally posted by Linh
1) What are the major differences between HTTP and HTTPS ?
http is unencrypted traffic between client and web server. There is less overhead on HTTP packets than HTTPS. HTTPS is encrypted.

Quote:
2) Is it true that HTTP uses private encryption and HTTPS uses public and private key encryption ?
HTTP uses no encryption to speak of. Anyone who intercepts the packets can see any and all data. HTTPS does use asymmetric encryption to validate that the communications are travelling between the same two entities and thru an SSL "tunnel". Packets grabbed will be garbled.

Quote:
3) How is HTTPS is more secure than HTTP, since HTTPS suppose to prevent hacking when the data is being transfer from the client to the server ?
see above

Quote:
4) How do you set up an Apache web server to run HTTPS ?
ssl.conf file
 
Old 09-17-2003, 11:43 AM   #4
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
reply to Cyph3r7 and phoeniXflame

You said "http is unencrypted traffic between client and web server."

1) If a web site were using HTTP, then user account and password and what is purchase and for how much is encrypted and is sent over the internet along with unencrypted information (such as font color, font size and so forth). Am I right ?

2) When I visited a site that uses HTTPS, it would say https://www.abc_sell.com . Is this correct ?

3) When I purchased something over the internet, or conduct banking transaction over the internet, do they always use HTTPS or do they use HTTP with only sensitive information encrypted ?

4) What is the difference between HTTPS and SSL ?

5) Does HTTPS uses just private key encryption or a combination of public-private key encryption ?

Last edited by Linh; 09-17-2003 at 11:45 AM.
 
Old 09-17-2003, 11:54 AM   #5
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
Quote:
1) If a web site were using HTTP, then user account and password and what is purchase and for how much is encrypted and is sent over the internet along with unencrypted information (such as font color, font size and so forth). Am I right ?
If a site is HTTP, any info you send is in clear text, user names, passwords, everything.

Quote:
2) When I visited a site that uses HTTPS, it would say https://www.abc_sell.com . Is this correct ?
Correct, HTTPS denotes the use of SSL tunnel (Secure Socket Layer)

Quote:
3) When I purchased something over the internet, or conduct banking transaction over the internet, do they always use HTTPS or do they use HTTP with only sensitive information encrypted ?
If you notice when on a banking site or making a purchase, the base site is HTTP but when you are to go to make a purchase or login to your account it switches to HTTPS.

Quote:
4) What is the difference between HTTPS and SSL ?
HTTPS denotes the use of the Secure Socket Layer (SSL) generally on port 443. Consider that a "tunnel" between browser and web server, like a VPN.

The second layer of trust is established via the use of cerificates. The web server uses a certificate that the browser trusts. All communications between the two are considered valid and trusted.

To learn more about encryption, check out my page:

Crypto for the masses

Quote:
5) Does HTTPS uses just private key encryption or a combination of public-private key encryption ?
Pub/Priv or asymmetric with a root auth certificate on the web server.
 
Old 09-18-2003, 11:13 AM   #6
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
If you want to set Apache up to only listen for HTTPS requests, first set it up to work with HTTPS (generate certificate, modify ssl.conf etc.) then in httpd.conf, comment the line that says

Listen 80

then if you nc 127.0.0.1 80 it should refuse the connection, but nc 127.0.0.1 443 should let you in, though it won't understand an HTTP request.

HTH

B.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTPS and HTTP on same server Jake_B Linux - Software 2 11-28-2005 04:47 PM
http and https wennie Linux - Software 1 04-01-2005 11:47 AM
Got http, now I need to run https lothario Linux - Software 2 01-08-2005 02:30 PM
HTTP to HTTPS shegde Linux - Software 8 01-31-2003 04:29 AM
https or http? antken Programming 3 10-30-2002 05:06 PM


All times are GMT -5. The time now is 09:53 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration