Quickly generate a self-signed SSL certificate for Apache

quick & dirty…


openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem

hint: to generate a wildcard certificate for multiple name-based virtualhosts, use *.domain.tld as the common name.

source

Leave a Reply