LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-19-2008, 09:51 AM   #1
i_nomad
Member
 
Registered: Mar 2008
Distribution: RedHatES4
Posts: 144

Rep: Reputation: 15
Apache 2 and SSL keys


I want https for squirrelmail
I have apache 2 set up
I have setup the keys
In httpd.conf I am bit confused from all the documentation out there how I get certificate exchange to take place. Can anyone give me code for this??

I have

#SSLEngine on
#SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
#SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

but not sure where to place it in the file.

on restarting the httpd service

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 1049 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration


Regards

Last edited by i_nomad; 06-19-2008 at 10:13 AM.
 
Old 06-19-2008, 06:04 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
See: http://www.squirrelmail.org/docs/adm...n-8.html#ss8.3

You can place all your SSL directives in your main httpd.conf file, or in a separate httpd-ssl.conf file, which you include in your httpd.conf file (to reduce clutter). Eg:

httpd.conf:
....
# Secure (SSL/TLS) connections
# simple mod_rewrite example
Include etc/httpd/httpd-ssl.conf

I have a regular http virtual host which re-directs to https:

httpd-vhosts.conf:
...
<VirtualHost *:80>
...
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{HTTP_HOST}:443%{REQUEST_URI} [QSA,R=permanent,L]
...
</VirtualHost>

but you can use any of the methods suggested in the URL above.

The exchange happens automatically when a client connects to the HTTPS port - that's why there is a separate listener port (443 vs. 80). This happens behind the scenes once you have the HTTPS listener configured.

If SSLEngine is found to be invalid, check to be sure you have an SSL-compiled http daemon.

Last edited by Mr. C.; 06-19-2008 at 06:06 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How-To regenerate your SSH/SSL Keys - Debian Security Advisory 1571 farslayer Debian 8 04-11-2011 09:45 AM
Apache 2 and SSL keys i_nomad Linux - Newbie 1 06-20-2008 02:15 PM
SSL keys tractng Red Hat 1 04-24-2008 04:10 AM
SSL Servers vs Apache SSL mlewis Linux - Networking 2 04-02-2008 10:13 AM
Problem compiling apache 2.0, ssl headers and gcc may be keys. eblakely Red Hat 0 04-16-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration