Server Administration
  Home arrow Server Administration arrow Page 6 - Generating Your Own Security Certificates For Use With Apache/HTTPS
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SERVER ADMINISTRATION

Generating Your Own Security Certificates For Use With Apache/HTTPS
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2004-01-27

    Table of Contents:
  • Generating Your Own Security Certificates For Use With Apache/HTTPS
  • Prepare the Working Environment
  • Install OpenSSL
  • Install Apache
  • Request, Sign and Install the Certificate
  • Configure Apache
  • Start/Stop Apache

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Generating Your Own Security Certificates For Use With Apache/HTTPS - Configure Apache


    (Page 6 of 7 )

    The desired directories, files and directives should be set in Apache's configuration file.

    # vi /usr/local/apache/conf/httpd.conf

    ServerType          standalone
    ServerRoot          /usr/local/apache

    <IfDefine SSL>
      Listen            80
      Listen            443
    </IfDefine>

    User                nobody
    Group               nogroup
    ServerAdmin         mail@example.com
    ServerName          www.example.com

    DocumentRoot        /mnt/hdd/web
    LoadModule          php4_module libexec/libphp4.so

    <IfModule mod_dir.c>
      DirectoryIndex    index.php index.html
    </IfModule>

    <IfModule mod_mime.c>
      AddType      application/x-httpd-php      .php
    </IfModule>

    <Directory "/mnt/hdd/web">
      Options           Indexes FollowSymLinks MultViews
      AllowOverride     None
      Order             allow,deny
                        Allow from all
    </Directory>

    <IfDefine SSL>
      NameVirtualHost     *:443
      <VirtualHost *:443>
        DocumentRoot    /mnt/hdd/webssl

        SSLEngine       on
        SSLCertificateFile \
            /usr/local/apache/conf/ssl.crt/server.crt
        SSLCertificateKeyFile \
            /usr/local/apache/conf/ssl.key/server.key

        <Directory "/mnt/hdd/webssl">
          Options       Indexes MultViews
          AllowOverride None
          Order         allow,deny
                        Allow from all
        </Directory>
      </VirtualHost>
    </IfDefine>

    The default configuration file provides a good starting point. Specific points of interest are the ServerType, ServerRoot, ServerAdmin, ServerName, DocumentRoot, LoadModule, SSLEngine, SSLCertificateFile and SSLCertificateKeyFile directives.

    Be sure that the SSLCertificateFile points to the location of the server's certificate and the SSLCertificateKeyFile points to the location of the server's encryption key.

    There may be other directives that you wish to change.

    More Server Administration Articles
    More By bluephoenix


       · Are we missing somthing? Looks like the tutorial and PDF are truncated at step...
       · 
       · I contacted Matt... all fixed! Thanks!-Tim
       · Hi,I already do like your manual here but i have problem on final step...
       · Volume,I've had that message once before on an internal machine I've set up for...
     

    SERVER ADMINISTRATION ARTICLES

    - Developing a Contingency Plan
    - Implementing an Information Security Managem...
    - HTTP State Management with Cookies
    - Information Security Standards
    - IP Network Scanning and Security Reconnaissa...
    - An Overview of Open Source Security
    - An Overview of Free Network Scanning Tools
    - Information Security: A Coherent Approach
    - Advanced IP Network Scanning Methods
    - Using Emulation and More to Analyze Network ...
    - Third Party IP Network Scanning Methods
    - Methods of IP Network Scanning
    - IP Network Scanning
    - sendmail Security Options
    - Security Features of sendmail





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