I am using a self-signed certificate. To renew the certificate for 365 days once it expires (from http://www.euhq.org/debian-apache-ssl-howto.html:
# cd /etc/apache-ssl # openssl genrsa -out ktware.com.key 1024 # chmod 600 ktware.com.key # openssl req -new -key ktware.com.key -out ktware.com.csr AU ACT Canberra Togaware Data Mining Togaware [email protected] (no challenge) # openssl x509 -req -days 365 -in ktware.com.csr \ -signkey ktware.com.key -out ktware.com.crt # mv apache.pem apache.pem.old # cp ktware.com.key apache.pem # cat ktware.com.crt >> apache.pem # chmod 600 apache.pem
Then restart the server:
# /etc/init.d/apache-ssl restart