Sunday, January 13, 2008

Creating a self-signed ssl certificate for Apache2

For some reason I always forget this command. To create a self-signed ssl certificate for your Apache2 webserver use:

apache2-ssl-certificate --days 1095


This will give you a certificate in /etc/apache2/ssl/apache.pem that is valid for three years.

No comments: