What files need to be edited to enable apache to work in SSL mode (https), port 443?
thanks in advance,
Jim
What files need to be edited to enable apache to work in SSL mode (https), port 443?
thanks in advance,
Jim
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.Originally Posted by Goner
Jim
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:
And:Code:Listen 80 Listen 443
Restart the httpd server:Code:<VirtualHost _default_:443> DocumentRoot /var/www ServerName My.server.com ServerAdmin [email protected] 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>
You will be asked for the RSA pass phrase.Code:/etc/init.d/apache restart
Regards,
IKK

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95
Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB
$27.07
Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019
$49.99
Yealink MP54 - VoIP Phone - Black Teams phone Android POE WIFI Bluetooth
$49.95
Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply
$25.00
Cisco DP-9851-L-K9 Desk Phone 9851 First Light White VoIP TPM 2.0 6-Line PoE NEW
$199.99
Grandstream HT701 1-Port FXS Analog Telephone Adapter ATA VoIP Gateway -Free S/H
$19.99
Cisco / Linksys SPA2102 VoIP 2FXS Phone Adapter with Router (unlocked)
$18.99
Cisco CP-8841 IP Phone Charcoal Handset And Stand Included
$27.99
Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$49.28