Skip to content
wanleung edited this page Feb 2, 2012 · 2 revisions

Welcome to the self-signed-cert-generator wiki!

While the Debian apache2 package was in Apache version 2.0, there was a tool called “apache2-ssl-certificate” for the users to use that script to gererate their own self-signed cert themselves. However, the script was removed since the apache2 package had been upgraded to Apache v2.2.

I had modified the old script so that it can generate a suitable self-signed cert for the new apache2(Apache v2.2) in Debain.

Usage: ./apache2-ssl-certificate OPTION VALUE…

OPTIONS:

-h | -help | --help -- To Show This Help
-f | --force        -- Force to generate the cert
-d | -days | --days -- cert to expire after x days, default is 365
-p | -path | --path -- Path of the cert will be stored,
                       default is /etc/apache/ssl
-n | -name | --name -- the name of the cert, default is apache
-b | -bit  | --bit  -- length of the key, default is 1024
Clone this wiki locally