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 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>
You will be asked for the RSA pass phrase.Code:/etc/init.d/apache restart
Regards,
IKK
64GB(4x16GB) HYNIX 16GB 2Rx4 PC3-14900R DDR3 1866MHz 1.5V ECC REG SERVER RAM
$36.79
CORSAIR Vengeance LPX 32GB (2 x 16GB) 288-Pin PC RAM DDR4 3600 (PC4 28800) Deskt
$47.32
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$50.99
8GB PC3L-12800S 1600MHz SODIMM DDR3 RAM | Grade A
$12.00
[ BULK LOT OF 20 ] UNITS of 8GB DDR4 Laptop RAM SAMSUNG, HYNIX etc.
$179.99
Sk Hynix 8GB 2Rx8 PC3L-12800S-11-13-F3 Computer RAM Memory Static Case
$9.95
G.SKILL Flare X5 32GB (2x16GB) DDR5 RAM 6000MHz (F5-6000J3038F16GX2-FX5)
$72.99
A-Tech 128GB 4x 32GB 2Rx4 PC4-21300R DDR4 2666 ECC REG RDIMM Server Memory RAM
$175.96
Dell OptiPlex 3070 Micro PC Intel i5 9500T 8GB RAM
$94.95