Results 1 to 4 of 4

Thread: Enabling apache-SSL

  1. #1
    Member registered user
    Join Date
    Jan 2003
    Location
    NY
    Posts
    86

    Enabling apache-SSL

    What files need to be edited to enable apache to work in SSL mode (https), port 443?

    thanks in advance,
    Jim

  2. #2
    Junior Member registered user
    Join Date
    Jan 2003
    Location
    Rotterdam, Netherlands
    Posts
    10
    hi,

    the mod_ssl module is loaded in /etc/apache/httpd.conf so it should be enabled.
    other modules, like PHP, server-info & server-status also work fine ...
    only problem is that the httpd.conf is write-proteced (linked), so i copied it to alt.conf, edited that file and enabled the modules i wanted and used "apache -f /etc/apache/alt.conf"

    i searched around a bit and found this :
    http://ist.uwaterloo.ca/security/lib.../howto/ssleay/
    it seems you need to install a certificate to enable SSL ??

    Goner

  3. #3
    Guest
    Quote Originally Posted by Goner
    hi,

    the mod_ssl module is loaded in /etc/apache/httpd.conf so it should be enabled.
    other modules, like PHP, server-info & server-status also work fine ...
    only problem is that the httpd.conf is write-proteced (linked), so i copied it to alt.conf, edited that file and enabled the modules i wanted and used "apache -f /etc/apache/alt.conf"

    i searched around a bit and found this :
    http://ist.uwaterloo.ca/security/lib.../howto/ssleay/
    it seems you need to install a certificate to enable SSL ??

    Goner
    I tried various other things, including creating a certificate, was not able to get it to work on port 443 using SSL yet.

    Jim

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Posts
    1
    Ok,

    I got it working after this:

    I used the (installed) libapache-mod-ssl package to create certificates.
    Go to /usr/share/doc/libapache-mod-ssl/examples
    Unzip gid-mkcert.sh.gz and run it.
    Fill out all the fields, and a bunch of server.* and ca.* files will be created in the current directory.
    (remember the pass phrases you use).

    Copy the .key files (ca.key and server.key) to /etc/apache/ssl.key
    Copy the .crt files (ca.crt and server.crt) to /etc/apache/ssl.crt
    Copy the .crs files (ca.crs and server.crs) to /etc/apache/ssl.crs

    Add the following to /etc/apache/httpd.conf:

    Code:
    Listen 80
    Listen 443
    And:

    Code:
    <VirtualHost _default_:443>
         DocumentRoot /var/www
         ServerName My.server.com
         ServerAdmin webmaster@my.server.com
         ErrorLog /var/log/apache/ssl_error_log
         TransferLog /var/log/apache/ssl_access_log
         SSLEngine On
         SSLCertificateFile /etc/apache/conf/ssl.crt/server.crt
         SSLCertificateKeyFile /etc/apache/conf/ssl.key/server.key
        <Files ~ "\.(cgi|shtml|php)$">
          SSLOptions +StdEnvVars
        </Files>
        <Directory "/cgi-bin">
          SSLOptions +StdEnvVars
        </Directory>
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
        CustomLog /var/log/apache/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
    </VirtualHost>
    Restart the httpd server:

    Code:
    /etc/init.d/apache restart
    You will be asked for the RSA pass phrase.

    Regards,

    IKK

Similar Threads

  1. enabling 3d in knoppix 3.6 hd install
    By helios17 in forum General Support
    Replies: 1
    Last Post: 11-21-2004, 01:11 AM
  2. patch for enabling k3b for user mode ?
    By cul971 in forum General Support
    Replies: 2
    Last Post: 11-05-2003, 02:05 PM
  3. Enabling X-Servers connection
    By blackshadow in forum General Support
    Replies: 1
    Last Post: 06-10-2003, 04:11 PM
  4. Enabling static IP configuration
    By dafne in forum Customising & Remastering
    Replies: 1
    Last Post: 05-23-2003, 12:05 PM
  5. Enabling 3D Support
    By Cyber in forum Customising & Remastering
    Replies: 0
    Last Post: 12-18-2002, 03:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$712.98



Dell PowerEdge R7525 Server 24X2.5(8XNVME)+H745 2xEPYC 7302 CPU 128G RAM 2x2400W picture

Dell PowerEdge R7525 Server 24X2.5(8XNVME)+H745 2xEPYC 7302 CPU 128G RAM 2x2400W

$3350.00



DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$269.99



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$89.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HYVE ZEUS V1 1U BAREBONE SERVER 2X10CORE E5-2680V2 2.8GHz 16GB RAM RISER NO RAIL picture

HYVE ZEUS V1 1U BAREBONE SERVER 2X10CORE E5-2680V2 2.8GHz 16GB RAM RISER NO RAIL

$180.00



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB picture

PowerEdge R710 Rackmount Server 80GB RAM 2x XEON E5520 CPU 4.75TB

$200.00