Security and Cryptography
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationSecurity and Cryptography

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 14th, 2001, 06:15 PM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 12
Question Setting up SSL on Apache Questions

I'm trying to do something very simple: setup a secure https so I can take credit card numbers for a store I'm setting up. I'm not processing the orders in real-time, I'm just taking the numbers securely so I can process them through my own merchant terminal. I also only want the SSL to be for the credit card number input page, not the whole site.

I have a web server running BSDi ISS 4 and Apache ver. 1.3.9. I have Webmin 0.71 on this same box.

I know that I need to use Secure Socket Layer (SSL) Encryption. I know I can set this up with various bits of software which I can install. I'm just not sure which ones I need.

There's OpenSSL and SSLeay, both of which I've installed on a development server running the latest version of FreeBSD. This is not a production server but just one I'm messing around with. Sticking with this development server for a moment, I also have Webmin 0.87 on it and I used its interface to enable SSL support (because I installed the SSLeay Perl module). Webmin also has a Certificate Authority module that allows you to generate certificates but I'm really not fully sure how it works . . . I managed to generate a certificate and an RSA private key but I'm not sure what to do with them.

So here I am sort of stuck with an older production server that'll need Apache upgraded to 1.3.20 and no SSL whatsoever, and a development server that appears to be running https but the certificates aren't trusted. I know I have to go to Verisign or Thawte and buy a contract but I'm still not crystal clear on that aspect of things either.

Okay, so that's the background. Here's my problem:

I've just learned about Apache-SSL and mod_ssl. Are these different? If so, do I need both of them? I ask because my devel server seems to be running https just fine without either of these with the exception that the certificates aren't trusted.

Also, I'm now finding that I may or may not need both OpenSSL and SSLeay. Do I need both or just OpenSSL?

Finally, can anyone recommend a practical book or online tutorial that shows semi-competent individuals like me (who know just enough to be dangerous) about what you need to get SSL up and running from start to finish? I know I can read the docs for every one of these things, but that's a lot of docs and I'm trying to get this done in less than a year (I'm a slow reader). Actually, I did read Verisign's "Securing Your Apache Server for Business with VeriSign Secure Server IDs" and it was pretty good, but I wouldn't mind another source to compare it to.

Any assistance will be greatly appreciated

Last edited by DH123 : September 14th, 2001 at 06:17 PM.

Reply With Quote
  #2  
Old September 14th, 2001, 07:09 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I've just learned about Apache-SSL and mod_ssl. Are these different?

Start here -> http://forums.devshed.com/showthrea...1645&forumid=15

>> do I need both of them?

No.

>> with the exception that the certificates aren't trusted

Why aren't they trusted? Your server will trust the connecting clients. It's up to the clients whether they GRANT your self-signed cert. You can always start out with a self-signed cert and pay around $120 for a commercial CA cert.

>> Do I need both or just OpenSSL?

Just OpenSSL. You'd use SSLeay when you need to develop SSL-aware application. Like writing a script and connect to Authorize.net on the server side.

>> can anyone recommend a practical book or online tutorial

I would start by searching google.com

Reply With Quote
  #3  
Old September 14th, 2001, 11:01 PM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 12
freebsd,

Thanks for the insights. Previous to my above post, I had read your post regarding Apache-SSL and mod_ssl, but I have to admit that it still left me scratching my head a tiny bit (give me time, It'll sink in eventually!).

Just to be sure I understood your response about Apache-SSL and mod_ssl, let me re-phrase my question: do I need either of them? That is, can I do without Apache-SSL and mod_ssl and just use good ol' regular Apache v.1.3.20 and OpenSSL to (which is what I did with my FreeBSD server).

Once again, your assistance is greatly appreciated!

Oh, and I will indeed continue to search Google.com for more info.

Reply With Quote
  #4  
Old September 15th, 2001, 12:01 AM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 12
Took freebsd's advice and did a few more Google.com searches and found some great resources to start with:

Xmission have four good introductory tips.


Apache with SSL from FreeBSDDiary.org

Frederick J. Hirsch

Two different flavours of SSL for Apache

Last edited by DH123 : September 16th, 2001 at 10:26 PM.

Reply With Quote
  #5  
Old September 15th, 2001, 12:40 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> do I need either of them?

Yes.

>> can I do without Apache-SSL and mod_ssl and just use good ol' regular Apache v.1.3.20 and OpenSSL

No. Your http daemon needs to be SSL-aware. In another protocol like SMTP, you probably should have heard of STARTSSL. Without the built in support for such STARTSSL SMTP command, when you are establishing a telnet session to the remote SMTP server and entering such command, the remote SMTP server just can't undertand it. For those MTA that support STARTSSL, they need to build (recompile) it and enable it explicitly.

Similarily, In Apache, you can build Apache-SSL but you are given another alternative -- mod_ssl, that's to load SSL support dynamically. Either case, you need to install OpenSSL.

Port 443 itselfis NOT SSL-aware. You need to build Apache with SSL support and listen to whatever port (default to 443).

Reply With Quote
  #6  
Old September 15th, 2001, 09:39 AM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 12
freebsd,

Alrighty, then . . . I need to make my http daemon (Apache) SSL-aware by patching it with Apache-SSL or recompiling it with mod_ssl.

Why then, does my development server running the FreeBSD OS with Apache 1.3.20 with OpenSSL and SSLeay installed and SSL enabled using Webmin's SSL Encryption and Certificate Authority modules appear to be running https when I log into Webmin no problem?

Did Webmin do something that I'm not aware of? Is it running https for Webmin only . . . ah!

I think I may have just answered my own question . . . Webmin has nothing to do with the Apache http daemon . . . it runs independently on top of everything else . . . (see, I know just enough to be dangerous ). This is why I've been getting confused: because Webmin appears to be just another set of web pages on the server, I unconsciously connected it with the behaviour of my existing Apache server install. D'uh!

Okay, all is slowly becoming clear. Thanks again for the help.

Reply With Quote
  #7  
Old September 16th, 2001, 03:57 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I think I may have just answered my own question

Yes you did.

BTW, if you are a BSD user, don't use webmin as it's for Linux newbies who don't know how to administer their system. Webmin users might say "Hey, I know how to do things manually without webmin and webmin just make my life easier. If you really know how, stop lying to yourself and write your own script. Further, if you really wanted to learn the OS, just quit using webmin. If you can't live without GUI, BSD is not for you, go back to Windows.

Correction: I just read my last post and found I posted the wrong SMTP command, it should be STARTTLS instead of STARTSSL.

Reply With Quote
  #8  
Old September 16th, 2001, 12:47 PM
DH123 DH123 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 48 DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level)DH123 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 20 m 14 sec
Reputation Power: 12
freebsd,

Stop using Webmin? Ha!

There's no doubt your skills are so sharp because you hone them everyday by doing things at the command line level; but Webmin is an excellent tool and I don't rely on it as a crutch as much as I rely on it as a expeditious way to get things done while I'm learning about how these things work at the command line level. There simply aren't enough hours in the day to do everything that must be done and learn from scratch at the same time.

Furthermore, I've still never written a shell script in my life so it'll be some time before I can learn how to write my own scripts to do what Webmin does.

But I do appreciate your admonition . . . I'm taking it as inspiration to keep learning this stuff from the inside out and not to rely on GUI's. If it helps to raise my credit at all, I didn't even install X-Windows in my FreeBSD install [Has anyone seen my hair shirt?]

Reply With Quote
  #9  
Old September 21st, 2001, 09:45 AM
carpediem-it carpediem-it is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 56 carpediem-it User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Hi

One thing to point out. mod_ssl can and does cause problems with some IE browsers (Esp Mac users)

Apache-SSL does not cause any problems

Regards
Darren
__________________
HTTP://WWW.PHP4HOSTING.COM ($) HTTP://WWW.PHP4HOSTING.CO.UK (£)
Website Hosting from $4.80/£3pm -- .COM/.NET $39.98/£24.99
PHP4, MySQL (Root Access), Full CGI-BIN, Shell Access, FTP, POP3, WAP
Full Control Reseller Accounts, unlimited domains, FTP, POP, MySQL,PHP4

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationSecurity and Cryptography > Setting up SSL on Apache Questions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT