Lecture lab: Compile Apache 2 Server with SSL and Create SSL Certificates

Опубликовано: 19 Июнь 2026
на канале: Learning Channel
4,637
7

Create your own SSL certificates and compile from source on Knoppix Linux Apache 2 server.

1. Download openssl sources

cd /home/knoppix
wget http://raider.grcc.edu/~smachaje/co24...
tar -xzvf openssl.tgz


2. Install Apache server.

Use the following configuration options:

SSL Documentation: http://httpd.apache.org/docs/2.0/ssl/...

Download Apache source files and navigate into the source directory.

./configure --prefix=/home/knoppix/apache --enable-ssl --with-ssl=/home/knoppix/openssl

3. Create your own SSL certificates.

cd /home/knoppix/apache/conf
openssl req -new -x509 -nodes -out server.crt -keyout server.key



4. Change the following configuration options in ssl.conf (an extension of httpd.conf):

SSLCertificateFile /home/knoppix/apache/conf/server.crt
SSLCertificateKeyFile /home/knoppix/apache/conf/server.key

5. Start server as root to run on port 80:
su -
cd /home/knoppix
apache/bin/apachectl startssl

6. Verify the ports which your server is configured to operate on. If the ports are 80 and 443 then start your server as root and use the following URLs to verify the system:

http://localhost/
https://localhost/

7. You can match the server name in the certificate with your server name by editing /etc/hosts file:

127.0.0.1 www.co246.com
127.0.0.1 www.example.com