apache2_ssl_debian
This is an old revision of the document!
apache2 + ssl + debian
- Install apache2
sudo apt-get install apache2
- Activate module and website
sudo a2ensite default-ssl sudo a2enmod ssl
- Restart apache
sudo /etc/init.d/apache2 restart
- Generate self-signed certificates
sudo mkdir /etc/apache2/ssl sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.crt
- In the last command put the name of your server.
- The create the two files out of the crt file
cd /etc/apache2/ssl sudo cp apache.crt apache.pem sudo cp apache.crt apache.key
- Edit this files and only leave the certificate key in the .pem file and the private key in the .key file
apache2_ssl_debian.1343794945.txt.gz · Last modified: 2021/02/01 05:55 (external edit)