0% found this document useful (0 votes)
47 views1 page

Cheatsheet ApacheSSL

This document provides steps to enable self-signed SSL certificates on a local Apache web server. It involves installing OpenSSL, generating self-signed certificates, enabling the SSL module for Apache, configuring the default SSL site to point to the certificates, and restarting Apache.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views1 page

Cheatsheet ApacheSSL

This document provides steps to enable self-signed SSL certificates on a local Apache web server. It involves installing OpenSSL, generating self-signed certificates, enabling the SSL module for Apache, configuring the default SSL site to point to the certificates, and restarting Apache.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

# Enabling Self signed certificates on local website

1. Install OpenSSL

sudo apt-get install openssl

2. Run the following command to generate the self signed SSL certificates:

sudo openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -out
/etc/ssl/certs/[Link] -keyout /etc/ssl/private/[Link]

3. Enable SSL for Apache

sudo a2enmod ssl

4. Put the default-ssl site available creating a symbolic link

sudo ln -s /etc/apache2/sites-available/[Link] /etc/apache2/sites-


enabled/[Link]

5. Edit the file [Link]

sudo nano /etc/apache2/sites-enabled/[Link]

Change the following lines to point to the certs:

SSLCertificateFile /etc/ssl/certs/[Link]
SSLCertificateKeyFile /etc/ssl/private/[Link]

6. Restart Apache

sudo /etc/init.d/apache2 restart

More information:
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
ubuntu-server

You might also like