Blog

Posted 2005/04/11

Renewing a self signed apache-ssl certificate on Debian

The Sarge installer will give you a cert good for a month but you will have to sort out a new one when it expires.
cd /etc/apache-ssl
openssl genrsa -out deagle.ninja.me.uk 1024
chmod 600 deagle.ninja.me.uk
openssl genrsa -out deagle.ninja.me.uk.key 1024
openssl req -new -key deagle.ninja.me.uk.key -out deagle.ninja.me.uk.csr
openssl x509 -req -days 365 -in deagle.ninja.me.uk.csr -signkey deagle.ninja.me.uk.key -out deagle.ninja.me.uk.crt
mv apache.pem apache.pem.old
cp deagle.ninja.me.uk.key apache.pem
cat deagle.ninja.me.uk.crt >> apache.pem
chmod 600 apache.pem
/etc/init.d/apache-ssl restart